| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | 
							- <?php
 
- /**
 
-  * FecShop file.
 
-  *
 
-  * @link http://www.fecshop.com/
 
-  * @copyright Copyright (c) 2016 FecShop Software LLC
 
-  * @license http://www.fecshop.com/license/
 
-  */
 
- namespace fecadmin\models;
 
- use Yii;
 
- use yii\db\ActiveRecord;
 
- use fec\helpers\CUrl;
 
- /**
 
-  * @author Terry Zhao <2358269014@qq.com>
 
-  * @since 1.0
 
-  */
 
- class AdminRoleMenu extends ActiveRecord
 
- {
 
-     
 
- 	
 
-     public static function tableName()
 
-     {
 
-         return '{{%admin_role_menu}}';
 
-     }
 
- 	
 
- 	public function rules()
 
-     {
 
- 		$current_rules = [
 
- 			['menu_id', 'required'],
 
- 			['role_id', 'required'],
 
- 		];
 
- 		return $current_rules;
 
-     }
 
- 	
 
- 	/*
 
- 	public function validateSortOrder($attribute,$params){
 
- 		if($order = $this->sort_order){
 
- 			if(!is_numeric($order)){
 
- 				$this->addError($attribute,"sort_order must be numeric");
 
- 			}
 
- 		}
 
- 	}
 
- 	*/
 
- 	
 
- 	
 
- 	
 
- }
 
 
  |