MODPATH/database/classes/kohana/database/mysql.php [ 59 ]
54 $this->_connection = mysql_pconnect($hostname, $username, $password);
55 }
56 else
57 {
58 // Create a connection and force it to be a new link
59 $this->_connection = mysql_connect($hostname, $username, $password, TRUE);
60 }
61 }
62 catch (Exception $e)
63 {
64 // No connection exists
-
MODPATH/database/classes/kohana/database/mysql.php [ 432 ] » Kohana_Database_MySQL->connect()
427 } 428 429 public function escape($value) 430 { 431 // Make sure the database is connected 432 $this->_connection or $this->connect(); 433 434 if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE) 435 { 436 throw new Database_Exception(':error', 437 array(':error' => mysql_error($this->_connection)),
-
APPPATH/classes/kohana/database.php [ 474 ] » Kohana_Database_MySQL->escape(arguments)
0
string(17) "Willem-Vogel.html"
469 { 470 // Convert to non-locale aware float to prevent possible commas 471 return sprintf('%F', $value); 472 } 473 474 return $this->escape($value); 475 } 476 477 /** 478 * Quote a database column name and add the table prefix if needed. 479 *
-
MODPATH/database/classes/kohana/database/query/builder.php [ 116 ] » Kohana_Database->quote(arguments)
0
string(17) "Willem-Vogel.html"
111 $value = $min.' AND '.$max; 112 } 113 elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) 114 { 115 // Quote the value, it is not a parameter 116 $value = $db->quote($value); 117 } 118 119 if ($column) 120 { 121 if (is_array($column))
-
MODPATH/database/classes/kohana/database/query/builder/select.php [ 370 ] » Kohana_Database_Query_Builder->_compile_conditions(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(2) "cr" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(27) "www.condoleanceregister.com" "database" => string(3) "usa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
1
array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(9) "clean_url" 1 => string(1) "=" 2 => string(17) "Willem-Vogel.html" ) ) )
365 } 366 367 if ( ! empty($this->_where)) 368 { 369 // Add selection conditions 370 $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); 371 } 372 373 if ( ! empty($this->_group_by)) 374 { 375 // Add grouping
-
MODPATH/database/classes/kohana/database/query.php [ 228 ] » Kohana_Database_Query_Builder_Select->compile(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(2) "cr" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(27) "www.condoleanceregister.com" "database" => string(3) "usa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
223 { 224 $object_params = $this->_object_params; 225 } 226 227 // Compile the SQL query 228 $sql = $this->compile($db); 229 230 if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) 231 { 232 // Set the cache key based on the database instance name and SQL 233 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
MODPATH/condoleanceregister/classes/condoleanceregister/repository/register.php [ 130 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(2) "cr" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(27) "www.condoleanceregister.com" "database" => string(3) "usa" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
125 { 126 $result = DB:: select('*') 127 ->from(self::TABLE_NAME) 128 ->where("clean_url", '=', $cleanUrl) 129 ->as_object() 130 ->execute(Manager_Database::db(DATABASE_CR)); 131 132 if($result->count() != 1) return null; 133 134 return CondoleanceRegister_Model_Register::create($result->current()); 135
-
APPPATH/module/cr/controller.php [ 113 ] » CondoleanceRegister_Repository_Register::getByCleanUrl(arguments)
0
string(17) "Willem-Vogel.html"
108 { 109 // Create database 110 Manager_Database::newDatabase(DATABASE_CR, config("cr.db.host"), config("cr.db.dbname"), config("cr.db.username"), config("cr.db.password")); 111 112 $crCleanUrl = str_replace($crCleanUrlPrefix, "", $registerCleanURL); 113 $crRegister = CondoleanceRegister_Repository_Register::getByCleanUrl($crCleanUrl); 114 115 if($crRegister && $crRegister->memoriId) 116 { 117 // CR-register found. Check if it is a national or personal register 118 if($crRegister->cat == "L")
-
APPPATH/module/cr/controller.php [ 201 ] » Module_CR_Controller->redirectOldCRUrl(arguments)
0
string(29) "Condoleance-Willem-Vogel.html"
196 $register = Module_CR_Repository_Register::getByCleanURL($registerCleanURL); 197 198 // Check if requested register exists 199 if(!$register) 200 { 201 $this->redirectOldCRUrl($registerCleanURL); 202 } 203 else 204 { 205 // Check if this register is inactive or not published 206 if(!$register->active || !$register->published)
-
APPPATH/classes/controller/page.php [ 169 ] » Module_CR_Controller->action_index(arguments)
0
array(1) ( 0 => string(29) "Condoleance-Willem-Vogel.html" )
164 } 165 166 // Execute the operation, given it the params 167 $controller = new $className(); 168 169 return $controller->$action($params); 170 } 171 }
-
APPPATH/classes/controller/page.php [ 77 ] » Controller_Page->redirectToModule(arguments)
0
string(2) "cr"
1
string(5) "index"
2
array(1) ( 0 => string(29) "Condoleance-Willem-Vogel.html" )
72 73 // If moduleTask exists, redirect to module 74 if($this->moduleTask) 75 { 76 // Redirect to module 77 $result = $this->redirectToModule($this->alias, $this->moduleTask, $params); 78 79 // Determine if this is a Model_Template 80 if(is_a($result, "Model_Template")) 81 { 82 if(!$result->sidebar && $this->templateHolder)
-
APPPATH/classes/controller/sef.php [ 224 ] » Controller_Page->action_index(arguments)
0
string(2) "cr"
1
string(5) "index"
2
array(1) ( 0 => string(29) "Condoleance-Willem-Vogel.html" )
219 220 221 // Execute the action 222 $controller = new Controller_Page($this->request, $this->response); 223 $controller->before(); 224 $controller->action_index($alias, $action, $params); 225 $controller->after(); 226 } 227 } 228 } 229 }
-
{PHP internal call} » Controller_Sef->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Sef(2)
{ public request => object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(63) "http://www.condoleanceregister.nl/Condoleance-Willem-Vogel.html" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(7) "(<uri>)" protected _regex => array(1) ( "uri" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(3) "sef" "action" => string(5) "index" ) protected _route_regex => string(22) "#^(?:(?P<uri>.*))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "sef" protected _action => string(5) "index" protected _uri => string(29) "Condoleance-Willem-Vogel.html" protected _external => bool FALSE protected _params => array(1) ( "uri" => string(29) "Condoleance-Willem-Vogel.html" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(63) "http://www.condoleanceregister.nl/Condoleance-Willem-Vogel.html" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(7) "(<uri>)" protected _regex => array(1) ( "uri" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(3) "sef" "action" => string(5) "index" ) protected _route_regex => string(22) "#^(?:(?P<uri>.*))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "sef" protected _action => string(5) "index" protected _uri => string(29) "Condoleance-Willem-Vogel.html" protected _external => bool FALSE protected _params => array(1) ( "uri" => string(29) "Condoleance-Willem-Vogel.html" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(63) "http://www.condoleanceregister.nl/Condoleance-Willem-Vogel.html" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(7) "(<uri>)" protected _regex => array(1) ( "uri" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(3) "sef" "action" => string(5) "index" ) protected _route_regex => string(22) "#^(?:(?P<uri>.*))?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(3) "sef" protected _action => string(5) "index" protected _uri => string(29) "Condoleance-Willem-Vogel.html" protected _external => bool FALSE protected _params => array(1) ( "uri" => string(29) "Condoleance-Willem-Vogel.html" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 120 ] » Kohana_Request->execute()
115 /** 116 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 117 * If no source is specified, the URI will be automatically detected. 118 */ 119 echo Request::factory() 120 ->execute() 121 ->send_headers() 122 ->body(); 123 }