classes/phing/tasks/ext/inifile/IniFileTask.php
public function checkReadFile($readFile)
    {
        if (null === $readFile) {
            return false;
        }
        if (!file_exists($readFile)) {
            $msg = "$readFile does not exist.";
            if ($this->haltonerror) {
                throw new BuildException($msg);
            }
            $this->log($msg, Project::MSG_ERR);
            return false;
        }
        if (!is_readable($readFile)) {
            $msg = "$readFile is not readable.";
            if ($this->haltonerror) {
                throw new BuildException($msg);
            }
            $this->log($msg, Project::MSG_ERR);
            return false;
        }
        $this->ini->read($readFile);
        $this->log("Read from $readFile");
        return true;
    }
public function checkReadFile($readFile)
    {
        if (null === $readFile) {
            return false;
        }
        if (!file_exists($readFile)) {
            $msg = "$readFile does not exist.";
            if ($this->haltonerror) {
                throw new BuildException($msg);
            }
            $this->log($msg, Project::MSG_ERR);
            return false;
        }
        if (!is_readable($readFile)) {
            $msg = "$readFile is not readable.";
            if ($this->haltonerror) {
                throw new BuildException($msg);
            }
            $this->log($msg, Project::MSG_ERR);
            return false;
        }
        $this->ini->read($readFile);
        $this->log("Read from $readFile");
        return true;
    }
public function checkReadFile ( $ readFile ) { if ( null === $ readFile ) { return false ; } if ( ! file_exists ( $ readFile ) ) { $ msg = "$readFile does not exist." ; if ( $ this -> haltonerror ) { throw new BuildException ( $ msg ) ; } $ this -> log ( $ msg , Project :: MSG_ERR ) ; return false ; } if ( ! is_readable ( $ readFile ) ) { $ msg = "$readFile is not readable." ; if ( $ this -> haltonerror ) { throw new BuildException ( $ msg ) ; } $ this -> log ( $ msg , Project :: MSG_ERR ) ; return false ; } $ this -> ini -> read ( $ readFile ) ; $ this -> log ( "Read from $readFile" ) ; return true ; }
Check file to be read from

@param string $readFile Filename

@return bool
Check file to be read from