private function scrapeCategoryList($link) {
    $source = $this->getDaxkoPageSource($link);
    $this->crawler->clear();
    $this->crawler->addHtmlContent($source);
    $list = $this->crawler->filter('div.two-column-container ul li a');
    $items = $list->each(function ($list_item) {
      return [
        'id' => $this->getQueryParam('category_ids', $list_item->attr('href')),
        'title' => $list_item->text(),
      ];
    });

    // Make the array developer friendly.
    $result = [];
    foreach ($items as $item) {
      if ($item['id']) {
        $result[$item['id']] = $item['title'];
      }
    }

    return $result;
  }
private function scrapeCategoryList($link) {
    $source = $this->getDaxkoPageSource($link);
    $this->crawler->clear();
    $this->crawler->addHtmlContent($source);
    $list = $this->crawler->filter('div.two-column-container ul li a');
    $items = $list->each(function ($list_item) {
      return [
        'id' => $this->getQueryParam('category_ids', $list_item->attr('href')),
        'title' => $list_item->text(),
      ];
    });

    // Make the array developer friendly.
    $result = [];
    foreach ($items as $item) {
      if ($item['id']) {
        $result[$item['id']] = $item['title'];
      }
    }

    return $result;
  }
private function scrapeCategoryList ( $ link ) { $ source = $ this -> getDaxkoPageSource ( $ link ) ; $ this -> crawler -> clear ( ) ; $ this -> crawler -> addHtmlContent ( $ source ) ; $ list = $ this -> crawler -> filter ( 'div.two-column-container ul li a' ) ; $ items = $ list -> each ( function ( $ list_item ) { return [ 'id' => $ this -> getQueryParam ( 'category_ids' , $ list_item -> attr ( 'href' ) ) , 'title' => $ list_item -> text ( ) , ] ; } ) ; // Make the array developer friendly. $ result = [ ] ; foreach ( $ items as $ item ) { if ( $ item [ 'id' ] ) { $ result [ $ item [ 'id' ] ] = $ item [ 'title' ] ; } } return $ result ; }
Scrape list of categories from the page.

@param string $link
Link to the page.

@return array
List of the categories.
Scrape list of categories from the page .