/
pashko
/
siec
Обзор
Документация
Войти
/
pashko
/
siec
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
common/models/Feedback.php
64 строки
1 KB
Pavel Kokorin
send to bitrix and logger
13 авг 2025, 20:48
13 авг 2025, 20:48
45c7ed2
Код
Авторство
О чём код?
<?php namespace common\models; /** * This is the model class for table "feedback". * * @property int $id * @property string $name * @property string $phone * @property string $email * @property string $from * @property string $to * @property string $message * @property string $type * @property string $ip * @property string $useragent * @property string $weight * @property string $volume * @property string $data */ class Feedback extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return 'feedback'; } /** * {@inheritdoc} */ public function rules() { return [ [['message', 'data'], 'string'], [['name', 'phone', 'email', 'from', 'to', 'type', 'ip', 'useragent', 'weight', 'volume'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'phone' => 'Phone', 'email' => 'Email', 'from' => 'From', 'to' => 'To', 'message' => 'Message', 'type' => 'Type', 'ip' => 'Ip', 'useragent' => 'Useragent', 'weight' => 'Weight', 'volume' => 'Volume', 'data' => 'Data', ]; } }