public function getCategories() {
    $cid = __METHOD__;
    if ($cache = $this->cache->get($cid)) {
      return $cache->data;
    }

    $link = $this->getUrlFromOpenyProgramsSearchSettings('get_categories_path');
    $result = $this->scrapeCategoryList($link);
    $data = array_combine(array_values($result), array_values($result));

    $this->cache->set($cid, $data);
    return $data;
  }
public function getCategories() {
    $cid = __METHOD__;
    if ($cache = $this->cache->get($cid)) {
      return $cache->data;
    }

    $link = $this->getUrlFromOpenyProgramsSearchSettings('get_categories_path');
    $result = $this->scrapeCategoryList($link);
    $data = array_combine(array_values($result), array_values($result));

    $this->cache->set($cid, $data);
    return $data;
  }
public function getCategories ( ) { $ cid = __METHOD__ ; if ( $ cache = $ this -> cache -> get ( $ cid ) ) { return $ cache -> data ; } $ link = $ this -> getUrlFromOpenyProgramsSearchSettings ( 'get_categories_path' ) ; $ result = $ this -> scrapeCategoryList ( $ link ) ; $ data = array_combine ( array_values ( $ result ) , array_values ( $ result ) ) ; $ this -> cache -> set ( $ cid , $ data ) ; return $ data ; }
Get all categories.

Some categories has different ids. Example: Camp -> cc_category_ids=41

@todo Fix categories without IDs.
Get all categories .