libraries/Items/BItemsTree.php
public function getSimpleTreeRecursive($fields=array(),$transfields=array(),$lang='',$wh=array()){
		$list=$this->getSimpleTree($fields,$transfields,$lang,$wh);
		if(!is_array($list)){
			return array();
			}
		$tree=array();
		foreach($list as $li){
			$id=(int)$li->{$this->primaryKeyName};
		        $ti=$li;
			//TODO: finish children
			$ti->children=array();
			$tree[]=$ti;
			}
		return $tree;
		}
public function getSimpleTreeRecursive($fields=array(),$transfields=array(),$lang='',$wh=array()){
		$list=$this->getSimpleTree($fields,$transfields,$lang,$wh);
		if(!is_array($list)){
			return array();
			}
		$tree=array();
		foreach($list as $li){
			$id=(int)$li->{$this->primaryKeyName};
		        $ti=$li;
			//TODO: finish children
			$ti->children=array();
			$tree[]=$ti;
			}
		return $tree;
		}
public function getSimpleTreeRecursive ( $ fields = array ( ) , $ transfields = array ( ) , $ lang = '' , $ wh = array ( ) ) { $ list = $ this -> getSimpleTree ( $ fields , $ transfields , $ lang , $ wh ) ; if ( ! is_array ( $ list ) ) { return array ( ) ; } $ tree = array ( ) ; foreach ( $ list as $ li ) { $ id = ( int ) $ li -> { $ this -> primaryKeyName } ; $ ti = $ li ; //TODO: finish children $ ti -> children = array ( ) ; $ tree [ ] = $ ti ; } return $ tree ; }
Get recursive tree
Get recursive tree