public function obj() {
    $result = new \stdClass();
    $result->items = array();
    foreach ($this->dom->getItems() as $item) {
      array_push($result->items, $this->getObject($item, array()));
    }
    return $result;
  }
public function obj() {
    $result = new \stdClass();
    $result->items = array();
    foreach ($this->dom->getItems() as $item) {
      array_push($result->items, $this->getObject($item, array()));
    }
    return $result;
  }
public function obj ( ) { $ result = new \ stdClass ( ) ; $ result -> items = array ( ) ; foreach ( $ this -> dom -> getItems ( ) as $ item ) { array_push ( $ result -> items , $ this -> getObject ( $ item , array ( ) ) ) ; } return $ result ; }
Retrieve microdata as a PHP object.

@return object
An object with an 'items' property, which is an array of top level
microdata items as objects with the following properties:
- type: An array of itemtype(s) for the item, if specified.
- id: The itemid of the item, if specified.
- properties: An array of itemprops. Each itemprop is keyed by the
itemprop name and has its own array of values. Values can be strings
or can be other items, represented as objects.

@todo MicrodataJS allows callers to pass in a selector for limiting the
parsing to one section of the document. Consider adding such
functionality.
Retrieve microdata as a PHP object .