public function serialize(DOMElement $ir)
	{
		$this->xpath  = new DOMXPath($ir->ownerDocument);
		$this->isVoid = [];
		foreach ($this->xpath->query('//element') as $element)
		{
			$this->isVoid[$element->getAttribute('id')] = $element->getAttribute('void');
		}

		return $this->serializeChildren($ir);
	}
public function serialize(DOMElement $ir)
	{
		$this->xpath  = new DOMXPath($ir->ownerDocument);
		$this->isVoid = [];
		foreach ($this->xpath->query('//element') as $element)
		{
			$this->isVoid[$element->getAttribute('id')] = $element->getAttribute('void');
		}

		return $this->serializeChildren($ir);
	}
public function serialize ( DOMElement $ ir ) { $ this -> xpath = new DOMXPath ( $ ir -> ownerDocument ) ; $ this -> isVoid = [ ] ; foreach ( $ this -> xpath -> query ( '//element' ) as $ element ) { $ this -> isVoid [ $ element -> getAttribute ( 'id' ) ] = $ element -> getAttribute ( 'void' ) ; } return $ this -> serializeChildren ( $ ir ) ; }
Serialize the internal representation of a template into PHP

@param  DOMElement $ir Internal representation
@return string
Serialize the internal representation of a template into PHP