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; }