| Current Path : /var/www/html/audit/backend/modules/uiuxBuilder/models/ |
| Current File : /var/www/html/audit/backend/modules/uiuxBuilder/models/GrapeComponent.php |
<?php
namespace backend\modules\uiuxBuilder\models;
use Yii;
/**
* This is the model class for table "grape_component".
*
* @property int $id
* @property string $name
* @property string $icon
* @property string $html
* @property string $script
* @property string $block_id
* @property string $label
* @property int $status
* @property int $sort
* @property string $style
* @property string $created_at
* @property string $updated_at
* @property string $class
*/
class GrapeComponent extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'grape_component';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['html', 'script', 'style'], 'string'],
[['status', 'sort'], 'integer'],
[['created_at', 'updated_at'], 'safe'],
[['name'], 'string', 'max' => 600],
[['icon'], 'string', 'max' => 1500],
[['block_id', 'label', 'class'], 'string', 'max' => 1600],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Name',
'icon' => 'Icon',
'html' => 'Html',
'script' => 'Script',
'block_id' => 'Block ID',
'label' => 'Label',
'status' => 'Status',
'sort' => 'Sort',
'style' => 'Style',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'class' => 'Class',
];
}
}