public function fetchObject(TeamSpeak3_Node_Abstract $node, array $siblings = array())
  {
    $this->currObj = $node;
    $this->currSib = $siblings;

    $obj = new stdClass();

    $obj->ident    = $this->getId();
    $obj->parent   = $this->getParent();
    $obj->children = $node->count();
    $obj->level    = $this->getLevel();
    $obj->first    = (bool) ($obj->level != $this->lastLvl);
    $obj->last     = (bool) array_pop($siblings);
    $obj->siblings = array_map("boolval", $siblings);
    $obj->class    = $this->getType();
    $obj->name     = $this->getName();
    $obj->image    = $this->getImage();
    $obj->props    = $this->getProps();

    $this->data[]  = $obj;
    $this->lastLvl = $obj->level;
  }
public function fetchObject(TeamSpeak3_Node_Abstract $node, array $siblings = array())
  {
    $this->currObj = $node;
    $this->currSib = $siblings;

    $obj = new stdClass();

    $obj->ident    = $this->getId();
    $obj->parent   = $this->getParent();
    $obj->children = $node->count();
    $obj->level    = $this->getLevel();
    $obj->first    = (bool) ($obj->level != $this->lastLvl);
    $obj->last     = (bool) array_pop($siblings);
    $obj->siblings = array_map("boolval", $siblings);
    $obj->class    = $this->getType();
    $obj->name     = $this->getName();
    $obj->image    = $this->getImage();
    $obj->props    = $this->getProps();

    $this->data[]  = $obj;
    $this->lastLvl = $obj->level;
  }
public function fetchObject ( TeamSpeak3_Node_Abstract $ node , array $ siblings = array ( ) ) { $ this -> currObj = $ node ; $ this -> currSib = $ siblings ; $ obj = new stdClass ( ) ; $ obj -> ident = $ this -> getId ( ) ; $ obj -> parent = $ this -> getParent ( ) ; $ obj -> children = $ node -> count ( ) ; $ obj -> level = $ this -> getLevel ( ) ; $ obj -> first = ( bool ) ( $ obj -> level != $ this -> lastLvl ) ; $ obj -> last = ( bool ) array_pop ( $ siblings ) ; $ obj -> siblings = array_map ( "boolval" , $ siblings ) ; $ obj -> class = $ this -> getType ( ) ; $ obj -> name = $ this -> getName ( ) ; $ obj -> image = $ this -> getImage ( ) ; $ obj -> props = $ this -> getProps ( ) ; $ this -> data [ ] = $ obj ; $ this -> lastLvl = $ obj -> level ; }
Assembles an stdClass object for the current element.

@param  TeamSpeak3_Node_Abstract $node
@param  array $siblings
@return void
Assembles an stdClass object for the current element .