| Current Path : /var/www/html/drsa/backend/modules/appStatistics/models/ |
| Current File : /var/www/html/drsa/backend/modules/appStatistics/models/ModuleAppStatistics.php |
<?php
namespace backend\modules\appStatistics\models;
use Yii;
/**
* This is the model class for table "module_app_statistics".
*
* @property int $Id
* @property string $title
* @property string $image
* @property string $description
* @property int $category
* @property string $graph_type
* @property int $status
* @property string $created_at
* @property string $created_by
* @property string $updated_at
* @property string $updated_by
*/
class ModuleAppStatistics extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'module_app_statistics';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['title', 'category', 'status', 'graph_type'], 'required'],
[['description', 'created_at', 'updated_at', 'image', 'created_by', 'updated_by', 'tags', 'height', 'sort', 'file'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'Id' => 'ID',
'title' => 'Title',
'image' => 'Image',
'description' => 'Description',
'category' => 'Category',
'graph_type' => 'Graph Type',
'status' => 'Status',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
'tags' => 'Tags',
'height' => 'Chart Height (px)',
'sort' => 'Order',
'file' => 'Data File (CSV)'
];
}
}