/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/Pluses.php
54 строки
1023 B
Kokorin Pavel
slug to pluses blog
14 окт 2020, 07:25
14 окт 2020, 07:25
d61a2f3
Код
Авторство
О чём код?
<?php namespace common\models; use Yii; /** * This is the model class for table "pluses". * * @property int $id * @property string $title * @property string $description * @property string $active * @property string $icon * @property int $sort */ class Pluses extends Yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return 'pluses'; } /** * {@inheritdoc} */ public function rules() { return [ [['title'], 'required'], [['description', 'active', 'slug'], 'string'], [['sort'], 'integer'], [['title', 'icon'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'title' => 'Title', 'description' => 'Description', 'active' => 'Active', 'icon' => 'Icon', 'sort' => 'Sort', ]; } }