public function rebuildStoreIndex($storeId, $categoryIds = null)
    {
        $lastCategoryId = 0;

        do {
            $categories = $this->getSearchableCategories($storeId, $categoryIds, $lastCategoryId);

            foreach ($categories as $categoryData) {
                $lastCategoryId = (int) $categoryData['entity_id'];
                yield $lastCategoryId => $categoryData;
            }
        } while (!empty($categories));
    }
public function rebuildStoreIndex($storeId, $categoryIds = null)
    {
        $lastCategoryId = 0;

        do {
            $categories = $this->getSearchableCategories($storeId, $categoryIds, $lastCategoryId);

            foreach ($categories as $categoryData) {
                $lastCategoryId = (int) $categoryData['entity_id'];
                yield $lastCategoryId => $categoryData;
            }
        } while (!empty($categories));
    }
public function rebuildStoreIndex ( $ storeId , $ categoryIds = null ) { $ lastCategoryId = 0 ; do { $ categories = $ this -> getSearchableCategories ( $ storeId , $ categoryIds , $ lastCategoryId ) ; foreach ( $ categories as $ categoryData ) { $ lastCategoryId = ( int ) $ categoryData [ 'entity_id' ] ; yield $ lastCategoryId => $ categoryData ; } } while ( ! empty ( $ categories ) ) ; }
Get data for a list of categories in a store id.
If the product list ids is null, all categories data will be loaded.

@param integer    $storeId     Store id.
@param array|null $categoryIds List of category ids.

@return \Traversable
Get data for a list of categories in a store id . If the product list ids is null all categories data will be loaded .