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/StatsFunChild.php

<?php

namespace backend\modules\statisticsFun\models;

use Yii;

/**
 * This is the model class for table "stats_fun_child".
 *
 * @property int $child_id
 * @property int $main_id
 * @property string $child_title
 * @property string $child_source
 * @property string $child_type
 * @property string $child_thumbnail
 * @property string $child_background
 * @property int $child_order
 * @property string $created_at
 * @property string $created_by
 * @property string $updated_at
 * @property string $updated_by
 */
class StatsFunChild extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['child_poll_output', 'main_id', 'child_order', 'child_title', 'child_source', 'child_type', 'child_thumbnail', 'child_background', 'created_by', 'updated_by', 'created_at', 'updated_at'], 'safe'],
            [['child_title', 'child_source', 'child_type', 'child_order'], 'required'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'child_id' => 'Child ID',
            'main_id' => 'Main ID',
            'child_title' => 'Title',
            'child_source' => 'Source',
            'child_type' => 'Type',
            'child_thumbnail' => 'Thumbnail',
            'child_background' => 'Background',
            'child_order' => 'Order',
            'created_at' => 'Created At',
            'created_by' => 'Created By',
            'updated_at' => 'Updated At',
            'updated_by' => 'Updated By',
            'child_poll_output' => 'Poll Output'
        ];
    }

}