public function validate(&$msg = null)
    {
        if (!isset($this->_name) && !isset($this->_value) && !isset($this->_file)) {
            return false;
        } elseif (isset($this->_file) && (isset($this->_name) || isset($this->_value))) {
            return false;
        } elseif ((isset($this->_name) && !isset($this->_value)) || (!isset($this->_name) && isset($this->_value))) {
            return false;
        } else {
            return true;
        }
    }
public function validate(&$msg = null)
    {
        if (!isset($this->_name) && !isset($this->_value) && !isset($this->_file)) {
            return false;
        } elseif (isset($this->_file) && (isset($this->_name) || isset($this->_value))) {
            return false;
        } elseif ((isset($this->_name) && !isset($this->_value)) || (!isset($this->_name) && isset($this->_value))) {
            return false;
        } else {
            return true;
        }
    }
public function validate ( & $ msg = null ) { if ( ! isset ( $ this -> _name ) && ! isset ( $ this -> _value ) && ! isset ( $ this -> _file ) ) { return false ; } elseif ( isset ( $ this -> _file ) && ( isset ( $ this -> _name ) || isset ( $ this -> _value ) ) ) { return false ; } elseif ( ( isset ( $ this -> _name ) && ! isset ( $ this -> _value ) ) || ( ! isset ( $ this -> _name ) && isset ( $ this -> _value ) ) ) { return false ; } else { return true ; } }
Validates if a task can run by checking configs, directries and so on.

@return bool Is true if task can run
Validates if a task can run by checking configs directries and so on .