setInputFile() public method

Sets the input xml file to be parsed
public setInputFile ( string $file ) : resource
$file string Filename (full path)
return resource fopen handle of the given file
コード例 #1
0
 /**
  * Sets the input xml file to be parsed
  *
  * @param    string      Filename (full path)
  * @return   boolean
  * @access   public
  */
 function setInputFile($file)
 {
     $this->_syntaxFile = $file;
     $ret = parent::setInputFile($file);
     if (PEAR::isError($ret)) {
         $this->_error(TEXT_HIGHLIGHTER_FILE_READ, $ret->message);
         return false;
     }
     return true;
 }