/** * * Returns information about the catalog as an array with keys for 'names' * (the model name-to-class mappings), 'store' (the classes actually * loaded up and retained), and 'stack' (the search stack for models). * * @return array * */ public function getInfo() { return array('names' => $this->_name_class, 'store' => array_keys($this->_store), 'stack' => $this->_stack->get()); }
/** * * Returns the filter class stack. * * @return array The stack of filter classes. * * @see Solar_Class_Stack::get() * */ public function getFilterClass() { return $this->_stack->get(); }
/** * * Executes when fetch() cannot find a related page-controller class. * * Generates an "HTTP 1.1/404 Not Found" status header and returns a * short HTML page describing the error. * * @param string $page The name of the page not found. * * @return string * */ protected function _notFound($page) { $content[] = "<html><head><title>Not Found</title></head><body>"; $content[] = "<h1>404 Not Found</h1>"; $content[] = "<p>" . htmlspecialchars("Page controller class for '{$page}' not found.") . "</p>"; if ($this->_config['explain']) { $content[] = "<h2>Track</h2>"; $content[] = "<dl>"; foreach ($this->_explain as $code => $text) { $content[] = "<dt><code>{$code}:</code></dt>"; $content[] = "<dd><code>" . ($text ? htmlspecialchars($text) : "<em>empty</em>") . "</code></dd>"; } $content[] = "</dl>"; $content[] = "<h2>Page Class Prefixes</h2>"; $content[] = '<ol>'; foreach ($this->_stack->get() as $class) { $content[] = "<li>{$class}*</li>"; } $content[] = '</ol>'; } $content[] = "</body></html>"; $response = Solar_Registry::get('response'); $response->setStatusCode(404); $response->content = implode("\n", $content); return $response; }
/** * * Returns the helper class stack. * * @return array The stack of helper classes. * * @see Solar_Class_Stack::get() * */ public function getHelperClass() { return $this->_helper_class->get(); }