Your IP : 216.73.216.79


Current Path : /var/www/html/dosm/backend/models/
Upload File :
Current File : /var/www/html/dosm/backend/models/TotAtsilah.php

<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "tot_atsilah".
 *
 * @property int $id
 * @property string $title
 * @property string $title_desc
 * @property string $amount
 * @property int $sort
 */
class TotAtsilah extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tot_atsilah';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['title', 'title_desc', 'amount', 'sort'], 'required'],
            [['amount'], 'number'],
            [['sort'], 'integer'],
            [['title', 'title_desc'], 'string', 'max' => 255],
            [['category'],'safe']
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'title_desc' => 'Title Desc',
            'amount' => 'Amount',
            'sort' => 'Sort',
        ];
    }
}