original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns an array of categories with parent categories set
  @param array $options
  @return array
docstring_tokens: Returns an array of categories with parent categories set