swagger tasks
This commit is contained in:
@ -28,6 +28,8 @@ use yii\helpers\ArrayHelper;
|
||||
*/
|
||||
class ProjectTask extends ActiveRecord
|
||||
{
|
||||
const STATUS_ACTIVE = 1;
|
||||
const STATUS_DISABLE = 0;
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@ -103,6 +105,17 @@ class ProjectTask extends ActiveRecord
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public static function getStatus(): array
|
||||
{
|
||||
return [
|
||||
self::STATUS_ACTIVE => 'Активен',
|
||||
self::STATUS_DISABLE => 'Выключен'
|
||||
];
|
||||
}
|
||||
|
||||
public function beforeDelete()
|
||||
{
|
||||
foreach ($this->taskUsers as $taskUser) {
|
||||
|
Reference in New Issue
Block a user