public function getCategories($conditions = array(), $options = array())
    {
        $conditions += array(
            'status' => 1,
            'type' => 'catalog',
            'store_id' => $this->store_id
        );

        $options += array(
            'entity' => 'category',
            'imagestyle' => $this->configTheme('image_style_category_child', 3));

        $categories = $this->category->getTree($conditions);
        $this->prepareEntityItems($categories, $options);
        return $categories;
    }
public function getCategories($conditions = array(), $options = array())
    {
        $conditions += array(
            'status' => 1,
            'type' => 'catalog',
            'store_id' => $this->store_id
        );

        $options += array(
            'entity' => 'category',
            'imagestyle' => $this->configTheme('image_style_category_child', 3));

        $categories = $this->category->getTree($conditions);
        $this->prepareEntityItems($categories, $options);
        return $categories;
    }
public function getCategories ( $ conditions = array ( ) , $ options = array ( ) ) { $ conditions += array ( 'status' => 1 , 'type' => 'catalog' , 'store_id' => $ this -> store_id ) ; $ options += array ( 'entity' => 'category' , 'imagestyle' => $ this -> configTheme ( 'image_style_category_child' , 3 ) ) ; $ categories = $ this -> category -> getTree ( $ conditions ) ; $ this -> prepareEntityItems ( $ categories , $ options ) ; return $ categories ; }
Returns an array of prepared categories
@param array $conditions
@param array $options
@return array
Returns an array of prepared categories