| Current Path : /var/www/html/pridik/backend/modules/frontendColorTheme/models/ |
| Current File : /var/www/html/pridik/backend/modules/frontendColorTheme/models/FrontendColorTheme.php |
<?php
namespace backend\modules\frontendColorTheme\models;
use Yii;
/**
* This is the model class for table "frontend_color_theme".
*
* @property int $id
* @property string|null $title
* @property string|null $color_primary
* @property string|null $color_secondary
*/
class FrontendColorTheme extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'frontend_color_theme';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['title', 'color_primary', 'color_secondary'], 'required'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'title' => 'Colour Palette Title',
'color_primary' => 'Colour Primary',
'color_secondary' => 'Colour Secondary',
];
}
}