PHPExiftool\RDFParser::open PHP Method

open() public method

Opens an XML file for parsing
public open ( string $XML ) : RDFParser
$XML string
return RDFParser
    public function open($XML)
    {
        $this->close();
        $this->XML = $XML;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Construct a new FileEntity
  *
  * @param  string       $file
  * @param  \DOMDocument $dom
  * @param  RDFParser    $parser
  * @return FileEntity
  */
 public function __construct($file, \DOMDocument $dom, RDFParser $parser)
 {
     $this->dom = $dom;
     $this->file = $file;
     $this->cache = new ArrayCache();
     $this->parser = $parser->open($dom->saveXML());
     return $this;
 }
All Usage Examples Of PHPExiftool\RDFParser::open