add_type_in_settings

This commit is contained in:
SoHardKI
2019-06-26 17:22:10 +03:00
parent 91e3608c47
commit befb8a96a2
9 changed files with 82 additions and 15 deletions

View File

@ -81,4 +81,13 @@ class UseField extends \yii\db\ActiveRecord
{
return $this->statuses[$this->status_id];
}
/**
* @return string status text label
*/
public static function getStatusesTextById($id)
{
$model = new self();
return $model->statuses[$id];
}
}