Your IP : 216.73.216.79


Current Path : /var/www/html/dosm/backend/modules/statisticsFun/models/
Upload File :
Current File : /var/www/html/dosm/backend/modules/statisticsFun/models/StatsFunMain.php

<?php

namespace backend\modules\statisticsFun\models;

use Yii;

/**
 * This is the model class for table "stats_fun_main".
 *
 * @property int $stats_id
 * @property string $stats_slug
 * @property string $stats_title
 * @property string $stats_thumbnail
 * @property string $stats_background
 * @property string $created_at
 * @property string $created_by
 * @property string $updated_at
 * @property string $updated_by
 */
class StatsFunMain extends \yii\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return 'stats_fun_main';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['created_at', 'updated_at', 'stats_slug', 'stats_title', 'stats_thumbnail', 'stats_background', 'created_by', 'updated_by', 'stats_descr',
            'meta_title', 'meta_descr', 'meta_keyword', 'meta_author', 'meta_img', 
            'sorting','stats_keywords'], 'safe'],
            [['stats_title', 'stats_status', 'stats_new_label'], 'required'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'stats_id' => 'Stats ID',
            'stats_slug' => 'Stats Slug',
            'stats_title' => 'Title',
            'stats_thumbnail' => 'Thumbnail',
            'stats_background' => 'Background',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
            'stats_status' => 'Status',
            'stats_descr' => 'Description',
            'stats_new_label' => 'New Label',
            'meta_title' => 'Meta Title',
            'meta_descr' => 'Meta Description',
            'meta_keyword' => 'Meta Keywords',
            'meta_author' => 'Author',
            'meta_img' => 'Image Thumbnail',
            'sorting' => 'Order',
            'stats_keywords' => 'Keywords'
        ];
    }

}