includes/Parser.php
public function parseFromId($id, $convertClassic=true) {
		$matches = $this->xpath->query("//*[@id='{$id}']");

		if (empty($matches))
			return array('items' => array(), 'rels' => array(), 'alternates' => array());

		return $this->parse($convertClassic, $matches->item(0));
	}
public function parseFromId($id, $convertClassic=true) {
		$matches = $this->xpath->query("//*[@id='{$id}']");

		if (empty($matches))
			return array('items' => array(), 'rels' => array(), 'alternates' => array());

		return $this->parse($convertClassic, $matches->item(0));
	}
public function parseFromId ( $ id , $ convertClassic = true ) { $ matches = $ this -> xpath -> query ( "//*[@id='{$id}']" ) ; if ( empty ( $ matches ) ) return array ( 'items' => array ( ) , 'rels' => array ( ) , 'alternates' => array ( ) ) ; return $ this -> parse ( $ convertClassic , $ matches -> item ( 0 ) ) ; }
Parse From ID

Given an ID, parse all microformats which are children of the element with
that ID.

Note that rel values are still document-wide.

If an element with the ID is not found, an empty skeleton mf2 array structure
will be returned.

@param string $id
@param bool $htmlSafe = false whether or not to HTML-encode angle brackets in non e-* properties
@return array
Parse From ID