includes/Parser.php
public function parse($convertClassic = true, DOMElement $context = null) {
		$this->convertClassic = $convertClassic;
		$mfs = $this->parse_recursive($context);

		// Parse rels
		list($rels, $rel_urls, $alternates) = $this->parseRelsAndAlternates();

		$top = array(
			'items' => array_values(array_filter($mfs)),
			'rels' => $rels,
			'rel-urls' => $rel_urls,
		);

		if ($this->enableAlternates && count($alternates)) {
			$top['alternates'] = $alternates;
		}

		return $top;
	}
public function parse($convertClassic = true, DOMElement $context = null) {
		$this->convertClassic = $convertClassic;
		$mfs = $this->parse_recursive($context);

		// Parse rels
		list($rels, $rel_urls, $alternates) = $this->parseRelsAndAlternates();

		$top = array(
			'items' => array_values(array_filter($mfs)),
			'rels' => $rels,
			'rel-urls' => $rel_urls,
		);

		if ($this->enableAlternates && count($alternates)) {
			$top['alternates'] = $alternates;
		}

		return $top;
	}
public function parse ( $ convertClassic = true , DOMElement $ context = null ) { $ this -> convertClassic = $ convertClassic ; $ mfs = $ this -> parse_recursive ( $ context ) ; // Parse rels list ( $ rels , $ rel_urls , $ alternates ) = $ this -> parseRelsAndAlternates ( ) ; $ top = array ( 'items' => array_values ( array_filter ( $ mfs ) ) , 'rels' => $ rels , 'rel-urls' => $ rel_urls , ) ; if ( $ this -> enableAlternates && count ( $ alternates ) ) { $ top [ 'alternates' ] = $ alternates ; } return $ top ; }
Kicks off the parsing routine
@param bool $convertClassic whether to do backcompat parsing on microformats1. Defaults to true.
@param DOMElement $context optionally specify an element from which to parse microformats
@return array An array containing all the microformats found in the current document
Kicks off the parsing routine