| Current Path : /var/www/html/sprm/backend/models/ |
| Current File : /var/www/html/sprm/backend/models/MobileApi.php |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "mobile_api".
*
* @property int $id
* @property string $title
* @property string $content
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class MobileApi extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'mobile_api';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['title', 'content'], 'required'],
[['content'], 'string'],
[['created_dt', 'updated_dt'], 'safe'],
[['created_by', 'updated_by'], 'integer'],
[['title'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => Yii::t('app', 'ID'),
'title' => Yii::t('app', 'Tajuk'),
'content' => Yii::t('app', 'Kandungan'),
'created_dt' => Yii::t('app', 'Created Dt'),
'created_by' => Yii::t('app', 'Created By'),
'updated_dt' => Yii::t('app', 'Updated Dt'),
'updated_by' => Yii::t('app', 'Updated By'),
];
}
}