Example #1
0
 public function action_get($catnm = null)
 {
     if (!$catnm) {
         $this->response = array('catalogs' => Sourcemap_Catalog::available_catalogs());
         return;
     }
     try {
         $results = Sourcemap_Catalog::get($catnm, $_GET);
     } catch (Exception $e) {
         return $this->_internal_server_error('Catalog is broken: ' . $e);
     }
     $this->response = $results;
 }
Example #2
0
 public function get_metadata()
 {
     $meta = parent::get_metadata();
     $meta['options'] = array('action' => array('required' => 'false', 'values' => array('search', 'category'), 'default' => 'search'));
     return $meta;
 }