portal.mkgtu.ru/common/models/dictionary/EducationInfo.php

36 lines
686 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace common\models\dictionary;
class EducationInfo extends \yii\db\ActiveRecord
{
public static function tableName()
{
return '{{%dictionary_education_info}}';
}
public function rules()
{
return [
[['education_type_code', 'document_type_code'], 'required'],
[['education_type_code','document_type_code'], 'string', 'max' => 100],
];
}
public function attributeLabels()
{
return [
'education_type_code' => 'Вид образования',
'document_type_code' => 'Вид документа об образовании',
];
}
}