public function addItem(CNabuDataObject $item)
    {
        if (is_array($nodes = $this->extractNodes($item)) && count($nodes) > 0) {
            if ($this->index === null) {
                $this->index = $nodes;
            } else {
                $this->index = array_merge($this->index, $nodes);
            }
        }
    }
public function addItem(CNabuDataObject $item)
    {
        if (is_array($nodes = $this->extractNodes($item)) && count($nodes) > 0) {
            if ($this->index === null) {
                $this->index = $nodes;
            } else {
                $this->index = array_merge($this->index, $nodes);
            }
        }
    }
public function addItem ( CNabuDataObject $ item ) { if ( is_array ( $ nodes = $ this -> extractNodes ( $ item ) ) && count ( $ nodes ) > 0 ) { if ( $ this -> index === null ) { $ this -> index = $ nodes ; } else { $ this -> index = array_merge ( $ this -> index , $ nodes ) ; } } }
Adds a new item to the index.
@param CNabuDataObject $item item to be added.
@return CNabuDataObject Returns the item added.
Adds a new item to the index .