public function get_categories() {
        $data = $this->data;

        if (empty($data[Parser::INDEX_PARENT_SPEC])) {
            return array();
        }

        // Okay. We first grab all of our categories.
        $categories = array();
        foreach ($data[Parser::INDEX_PARENT_SPEC] as $category) {
            $categories[] = $this->api->get_category($category['value']);
        }

        return $categories;
    }
public function get_categories() {
        $data = $this->data;

        if (empty($data[Parser::INDEX_PARENT_SPEC])) {
            return array();
        }

        // Okay. We first grab all of our categories.
        $categories = array();
        foreach ($data[Parser::INDEX_PARENT_SPEC] as $category) {
            $categories[] = $this->api->get_category($category['value']);
        }

        return $categories;
    }
public function get_categories ( ) { $ data = $ this -> data ; if ( empty ( $ data [ Parser :: INDEX_PARENT_SPEC ] ) ) { return array ( ) ; } // Okay. We first grab all of our categories. $ categories = array ( ) ; foreach ( $ data [ Parser :: INDEX_PARENT_SPEC ] as $ category ) { $ categories [ ] = $ this -> api -> get_category ( $ category [ 'value' ] ) ; } return $ categories ; }
Returns a list's categories.
Returns a list s categories .