protected function validateStatusUser()
    {
        $field = 'user';

        if ($this->isExcluded($field)) {
            return null;
        }

        $value = $this->getSubmitted($field);

        if (is_numeric($value)) {
            $value = $this->user->get($value);
        }

        if (empty($value['status']) || empty($value['user_id'])) {
            $this->setErrorUnavailable($field, $this->translation->text('User'));
            return false;
        }

        $this->setSubmitted($field, $value);
        return true;
    }
protected function validateStatusUser()
    {
        $field = 'user';

        if ($this->isExcluded($field)) {
            return null;
        }

        $value = $this->getSubmitted($field);

        if (is_numeric($value)) {
            $value = $this->user->get($value);
        }

        if (empty($value['status']) || empty($value['user_id'])) {
            $this->setErrorUnavailable($field, $this->translation->text('User'));
            return false;
        }

        $this->setSubmitted($field, $value);
        return true;
    }
protected function validateStatusUser ( ) { $ field = 'user' ; if ( $ this -> isExcluded ( $ field ) ) { return null ; } $ value = $ this -> getSubmitted ( $ field ) ; if ( is_numeric ( $ value ) ) { $ value = $ this -> user -> get ( $ value ) ; } if ( empty ( $ value [ 'status' ] ) || empty ( $ value [ 'user_id' ] ) ) { $ this -> setErrorUnavailable ( $ field , $ this -> translation -> text ( 'User' ) ) ; return false ; } $ this -> setSubmitted ( $ field , $ value ) ; return true ; }
Validates user status
@return boolean
Validates user status