Queue::rules PHP Méthode

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.
    public function rules()
    {
        return [['worker, task', 'required'], ['status, worker, priority', 'numerical', 'integerOnly' => true], ['status', 'in', 'range' => array_keys($this->getStatusList())], ['priority', 'in', 'range' => array_keys($this->getPriorityList())], ['notice', 'length', 'max' => 255], ['start_time, complete_time', 'safe'], ['id, worker, create_time, task, start_time, complete_time, status, notice', 'safe', 'on' => 'search']];
    }