public function addItem($path, $object = array(), $class = null) 
	{
		$path = explode('/', $path);
		
		$object['class'] = $class;
		
		$args = array();
		foreach($path as $key) {
			$args[] = $key;
			$args[] = 'children';	
		}
		
		//soft inject
		$tree = eden('registry', $this->tree);
		$last = count($args);
		foreach($object as $key => $value) {
			$args[$last - 1] = $key;
			$args[$last] = $value;
			$tree->callArray('set', $args);
		}
		
		$this->tree = $tree->getArray();
		return $this;
	}
public function addItem($path, $object = array(), $class = null) 
	{
		$path = explode('/', $path);
		
		$object['class'] = $class;
		
		$args = array();
		foreach($path as $key) {
			$args[] = $key;
			$args[] = 'children';	
		}
		
		//soft inject
		$tree = eden('registry', $this->tree);
		$last = count($args);
		foreach($object as $key => $value) {
			$args[$last - 1] = $key;
			$args[$last] = $value;
			$tree->callArray('set', $args);
		}
		
		$this->tree = $tree->getArray();
		return $this;
	}
public function addItem ( $ path , $ object = array ( ) , $ class = null ) { $ path = explode ( '/' , $ path ) ; $ object [ 'class' ] = $ class ; $ args = array ( ) ; foreach ( $ path as $ key ) { $ args [ ] = $ key ; $ args [ ] = 'children' ; } //soft inject $ tree = eden ( 'registry' , $ this -> tree ) ; $ last = count ( $ args ) ; foreach ( $ object as $ key => $ value ) { $ args [ $ last - 1 ] = $ key ; $ args [ $ last ] = $ value ; $ tree -> callArray ( 'set' , $ args ) ; } $ this -> tree = $ tree -> getArray ( ) ; return $ this ; }
Adds item to the tree

@param string
@param mixed
@return array
Adds item to the tree