public function getTree(array $options)
    {
        $tree = &gplcart_static(gplcart_array_hash(array('category.tree' => $options)));

        if (isset($tree)) {
            return $tree;
        }

        $list = (array) $this->getList($options);
        $tree = $this->prepareTree($list, $options);
        $this->hook->attach('category.tree', $tree, $this);
        return $tree;
    }
public function getTree(array $options)
    {
        $tree = &gplcart_static(gplcart_array_hash(array('category.tree' => $options)));

        if (isset($tree)) {
            return $tree;
        }

        $list = (array) $this->getList($options);
        $tree = $this->prepareTree($list, $options);
        $this->hook->attach('category.tree', $tree, $this);
        return $tree;
    }
public function getTree ( array $ options ) { $ tree = & gplcart_static ( gplcart_array_hash ( array ( 'category.tree' => $ options ) ) ) ; if ( isset ( $ tree ) ) { return $ tree ; } $ list = ( array ) $ this -> getList ( $ options ) ; $ tree = $ this -> prepareTree ( $ list , $ options ) ; $ this -> hook -> attach ( 'category.tree' , $ tree , $ this ) ; return $ tree ; }
Returns an array of categories with parent categories set
@param array $options
@return array
Returns an array of categories with parent categories set