| @@ 16-66 (lines=51) @@ | ||
| 13 | * @property string $key |
|
| 14 | * @property string $value |
|
| 15 | */ |
|
| 16 | abstract class Html extends \yii\db\ActiveRecord |
|
| 17 | { |
|
| 18 | ||
| 19 | ||
| 20 | /** |
|
| 21 | * @inheritdoc |
|
| 22 | */ |
|
| 23 | public static function tableName() |
|
| 24 | { |
|
| 25 | return 'app_html'; |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @inheritdoc |
|
| 30 | * @return \app\modules\prototype\models\query\HtmlQuery the active query used by this AR class. |
|
| 31 | */ |
|
| 32 | public static function find() |
|
| 33 | { |
|
| 34 | return new \app\modules\prototype\models\query\HtmlQuery(get_called_class()); |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @inheritdoc |
|
| 39 | */ |
|
| 40 | public function rules() |
|
| 41 | { |
|
| 42 | return [ |
|
| 43 | [['key', 'value'], 'required'], |
|
| 44 | [['value'], 'string'], |
|
| 45 | [['key'], 'string', 'max' => 255], |
|
| 46 | [['key'], 'unique'] |
|
| 47 | ]; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @inheritdoc |
|
| 52 | */ |
|
| 53 | public function attributeLabels() |
|
| 54 | { |
|
| 55 | return [ |
|
| 56 | 'id' => Yii::t('app', 'ID'), |
|
| 57 | 'key' => Yii::t('app', 'Key'), |
|
| 58 | 'value' => Yii::t('app', 'Value'), |
|
| 59 | ]; |
|
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | } |
|
| 64 | ||
| @@ 16-66 (lines=51) @@ | ||
| 13 | * @property string $key |
|
| 14 | * @property string $value |
|
| 15 | */ |
|
| 16 | abstract class Less extends \yii\db\ActiveRecord |
|
| 17 | { |
|
| 18 | ||
| 19 | ||
| 20 | /** |
|
| 21 | * @inheritdoc |
|
| 22 | */ |
|
| 23 | public static function tableName() |
|
| 24 | { |
|
| 25 | return 'app_less'; |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * @inheritdoc |
|
| 30 | * @return \app\modules\prototype\models\query\LessQuery the active query used by this AR class. |
|
| 31 | */ |
|
| 32 | public static function find() |
|
| 33 | { |
|
| 34 | return new \app\modules\prototype\models\query\LessQuery(get_called_class()); |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * @inheritdoc |
|
| 39 | */ |
|
| 40 | public function rules() |
|
| 41 | { |
|
| 42 | return [ |
|
| 43 | [['key'], 'required'], |
|
| 44 | [['value'], 'string'], |
|
| 45 | [['key'], 'string', 'max' => 255], |
|
| 46 | [['key'], 'unique'] |
|
| 47 | ]; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @inheritdoc |
|
| 52 | */ |
|
| 53 | public function attributeLabels() |
|
| 54 | { |
|
| 55 | return [ |
|
| 56 | 'id' => Yii::t('app', 'ID'), |
|
| 57 | 'key' => Yii::t('app', 'Key'), |
|
| 58 | 'value' => Yii::t('app', 'Value'), |
|
| 59 | ]; |
|
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | } |
|
| 64 | ||