/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
common/kdf/KHttpMethod.php
59 строк
1 KB
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php namespace common\kdf; use common\helpers\ArrayHelper; use Yii; /** * This is the model class for table "k_http_method". * * @property string $http_method HTTP method * * @author Dmitry E. Semenov <sde.tomsk@gmail.com> * @copyright Self (c) 2022 */ class KHttpMethod extends \common\kdf\base\BaseKdf { const POST = 1; const PUT = 2; const DELETE = 3; const GET = 4; /** * {@inheritdoc} */ public static function tableName() { return 'k_http_method'; } /** * {@inheritdoc} */ public function rules() { return ArrayHelper::merge(parent::rules(), [ [['http_method'], 'required'], [['http_method'], 'string', 'max' => 255], ]); } /** * {@inheritdoc} */ public function attributeLabels() { return ArrayHelper::merge(parent::attributeLabels(), [ 'http_method' => Yii::t('app', 'HTTP method'), ]); } /** * @inheritdoc */ public static function getTitleFields() { return ['http_method']; } }