add_type_in_settings

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

No files matched your search

+9
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];
}
}