/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/CalcCityFrom.php
63 строки
2 KB
Kokorin Pavel
copy past sta files
22 апр 2020, 11:01
22 апр 2020, 11:01
6fdb817
Код
Авторство
О чём код?
<?php namespace common\models; /** * This is the model class for table "calc_city_from". * * @property int $id * @property string $city * @property string $active * @property int $sort * @property int $time_deliv * @property int $time_delive_wp * @property int $price_lk_l20m3 * @property int $price_lk_g20m3 * @property double $price_hk_l2t * @property double $price_hk_g2t * @property int $price_ch_whole */ class CalcCityFrom extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return 'calc_city_from'; } /** * {@inheritdoc} */ public function rules() { return [ [['city'], 'required'], [['active'], 'string'], [['sort', 'time_deliv', 'time_delive_wp', 'price_lk_l20m3', 'price_lk_g20m3', 'price_ch_whole'], 'integer'], [['price_hk_l2t', 'price_hk_g2t'], 'number'], [['city'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'city' => 'City', 'active' => 'Active', 'sort' => 'Sort', 'time_deliv' => 'Срок доставки до Урумчи сборного груза', 'time_delive_wp' => 'Срок доставки до Зимуная цельной партии', 'price_lk_l20m3' => 'Цена (легкий куб, меньше 20м3)', 'price_lk_g20m3' => 'Цена (легкий куб, больше 20м3)', 'price_hk_l2t' => 'Цена (тяж.куб, меньше 2т)', 'price_hk_g2t' => 'Цена (тяж.куб, больше 2 т)', 'price_ch_whole' => 'Цена за цельную партию до Зимуная', ]; } }