portal.mkgtu.ru/common/models/settings/ParentDataSetting.php

21 lines
405 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\models\settings;
class ParentDataSetting extends Setting
{
public static function tableName(): string
{
return '{{%parent_data_settings}}';
}
public function rules()
{
return [
['name', 'string', 'max' => 100],
[['value', 'description'], 'string', 'max' => 1000],
['name', 'unique'],
];
}
}