You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							50 lines
						
					
					
						
							907 B
						
					
					
				
			
		
		
	
	
							50 lines
						
					
					
						
							907 B
						
					
					
				| <?php | |
|  | |
| namespace core\entities; | |
|  | |
|  | |
| /** | |
|  * This is the model class for table "modules". | |
|  * | |
|  * @property int $id | |
|  * @property string $name | |
|  * @property string $class | |
|  * @property string $type | |
|  * @property int $active | |
|  */ | |
| class ModuleRecord extends \yii\db\ActiveRecord | |
| { | |
|     /** | |
|      * @inheritdoc | |
|      */ | |
|     public static function tableName() | |
|     { | |
|         return '{{%modules}}'; | |
|     } | |
|  | |
|     /** | |
|      * @inheritdoc | |
|      */ | |
|     public function rules() | |
|     { | |
|         return [ | |
|             [['name', 'class', 'type'], 'required'], | |
|             [['name', 'class', 'type'], 'string', 'max' => 255], | |
| 	        ['active', 'integer'], | |
|             [['name'], 'unique'], | |
|         ]; | |
|     } | |
|  | |
|     /** | |
|      * @inheritdoc | |
|      */ | |
|     public function attributeLabels() | |
|     { | |
|         return [ | |
|             'id' => 'ID', | |
|             'name' => 'Name', | |
|             'class' => 'Class', | |
|             'type' => 'Type', | |
|         ]; | |
|     } | |
| }
 | |
| 
 |