/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/Invoice.php
52 строки
988 B
Kokorin Pavel
copy past sta files
22 апр 2020, 11:01
22 апр 2020, 11:01
6fdb817
Код
Авторство
О чём код?
<?php namespace common\models; use Yii; /** * This is the model class for table "invoice". * * @property int $id * @property string $title * @property string $short_text * @property string $button_text * @property string $active */ class Invoice extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'invoice'; } /** * @inheritdoc */ public function rules() { return [ [['title'], 'required'], [['short_text', 'active'], 'string'], [['title'], 'string', 'max' => 255], [['button_text'], 'string', 'max' => 25], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'title' => 'Title', 'short_text' => 'Short Text', 'button_text' => 'Button Text', 'active' => 'Active', ]; } }