| Current Path : /var/www/html/chatbot/backend/models/ |
| Current File : /var/www/html/chatbot/backend/models/ContentCalendar.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "content_calendar".
*
* @property int $content_calendar_id
* @property string $content_calendar_date
* @property string $content_calendar_description
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*/
class ContentCalendar extends \common\models\Dermaga
{
public $nextmonthstart;
public $nextmonthend;
/**
* @inheritdoc
*/
public static function tableName()
{
return 'content_calendar';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['content_calendar_date', 'created_at', 'updated_at'], 'safe'],
[['content_calendar_description'], 'string', 'max' => 1500],
[['created_by', 'updated_by'], 'string', 'max' => 20],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'content_calendar_id' => Yii::t('app', 'Calendar ID'),
'nextmonthstart' => Yii::t('app', 'Tarikh Dari'),
'nextmonthend' => Yii::t('app', 'Tarikh Hingga'),
'content_calendar_date' => Yii::t('app', 'Tarikh'),
'content_calendar_description' => Yii::t('app', 'Penerangan'),
'created_at' => Yii::t('app', 'Created At'),
'created_by' => Yii::t('app', 'Created By'),
'updated_at' => Yii::t('app', 'Updated At'),
'updated_by' => Yii::t('app', 'Updated By'),
];
}
}