Rits_Application::
run()
/home/mmmcom/public_html/index.php [24]
18 // engines
19 require_once 'rits/_engine/errorhandler.php';
20 require_once 'rits/_engine/autoload.php';
21
22 // run application
23 Rits_Application::getInstance()->run();
24
25 } catch (Exception $e) {
26 Rits_Exception_Handler::handle($e);
Zend_Controller_Front::
dispatch()
/home/mmmcom/rits/_library/Rits/Application.php [138]
132 $front->registerPlugin(new Rits_Controller_Plugin_Settings());
133 $front->registerPlugin(new Rits_Controller_Plugin_Stylesheet());
134 $front->registerPlugin(new Rits_Controller_Plugin_Request());
135
136 // dispatch
137 $front->dispatch();
138 }
139
140 /**
141 * Returns the front controller
142 *
Zend_Controller_Dispatcher_Standard::
dispatch(
object,
object)
/home/mmmcom/rits/_library/Zend/Controller/Front.php [934]
928
929 /**
930 * Dispatch request
931 */
932 try {
933 $dispatcher->dispatch($this->_request, $this->_response);
934 } catch (Exception $e) {
935 if ($this->throwExceptions()) {
936 throw $e;
937 }
938 $this->_response->setException($e);
Zend_Controller_Action::
dispatch(
string)
/home/mmmcom/rits/_library/Zend/Controller/Dispatcher/Standard.php [285]
279 if (empty($disableOb)) {
280 ob_start();
281 }
282
283 try {
284 $controller->dispatch($action);
285 } catch (Exception $e) {
286 // Clean output buffer on error
287 $curObLevel = ob_get_level();
288 if ($curObLevel > $obLevel) {
289 do {
Home_DefaultController::
indexAction()
/home/mmmcom/rits/_library/Zend/Controller/Action.php [503]
497 // preDispatch() didn't change the action, so we can continue
498 if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
499 if ($this->getInvokeArg('useCaseSensitiveActions')) {
500 trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
501 }
502 $this->$action();
503 } else {
504 $this->__call($action, array());
505 }
506 $this->postDispatch();
507 }
Rits_Database_Adapter_Pgsql_Connection::
prepare(
string)
/home/mmmcom/rits/modules/home/controllers/DefaultController.php [75]
69 // date
70 $sql_restrictions .= ' AND (VID_DT_PUBLISH <= :VID_DT_PUBLISH) AND (VID_DT_UNPUBLISH >= :VID_DT_UNPUBLISH OR VID_DT_UNPUBLISH IS NULL)';
71
72 $sql = "SELECT $sql_fields FROM $sql_table WHERE $sql_restrictions $sql_orderby LIMIT 1";
73
74 $stmt = $db->prepare($sql);
75
76 $stmt->setString(':VID_LANGUAGE', Rits_Locale::getInstance()->getApplication());
77
78 $stmt->setString(':VID_DT_PUBLISH', Rits_Date::date());
79 $stmt->setString(':VID_DT_UNPUBLISH', Rits_Date::date());
Rits_Database_Connection::
_connect()
/home/mmmcom/rits/_library/Rits/Database/Adapter/Pgsql/Connection.php [66]
60 * @param string SQL statement
61 * @return Rits_Database_Adapter_Pgsql_PreparedStatement
62 */
63 public function prepare ($sql)
64 {
65 $this->_connect();
66 return new Rits_Database_Adapter_Pgsql_PreparedStatement($sql, $this->_connection);
67 }
68
69 /**
70 * Executes a procedure
PDO::
__construct(
string,
string,
string,
NULL)
/home/mmmcom/rits/_library/Rits/Database/Connection.php [108]
102 // get the dsn first, because some adapters alter the $_pdoType
103 $dsn = $this->_dsn();
104
105 try {
106 // creates the PDO object
107 $this->_connection = new PDO($dsn, $this->_config['user'], $this->_config['password'], isset($this->_config['driver_options']) ? $this->_config['driver_options'] : null);
108
109 // set the PDO connection to perform case-folding on array keys, or not
110 $this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
111
112 // always use exceptions