MODPATH/database/classes/Kohana/Database/MySQLi.php [ 75 ]
70 catch (Exception $e)
71 {
72 // No connection exists
73 $this->_connection = NULL;
74
75 throw new Database_Exception(':error', array(':error' => $e->getMessage()), $e->getCode());
76 }
77
78 // \xFF is a better delimiter, but the PHP driver uses underscore
79 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
80
-
MODPATH/database/classes/Kohana/Database/MySQLi.php [ 409 ] » Kohana_Database_MySQLi->connect()
404 } 405 406 public function escape($value) 407 { 408 // Make sure the database is connected 409 $this->_connection or $this->connect(); 410 411 if (($value = $this->_connection->real_escape_string( (string) $value)) === FALSE) 412 { 413 throw new Database_Exception(':error', array( 414 ':error' => $this->_connection->error,
-
MODPATH/database/classes/Kohana/Database.php [ 478 ] » Kohana_Database_MySQLi->escape()
473 { 474 // Convert to non-locale aware float to prevent possible commas 475 return sprintf('%F', $value); 476 } 477 478 return $this->escape($value); 479 } 480 481 /** 482 * Quote a database column name and add the table prefix if needed. 483 *
-
MODPATH/database/classes/Kohana/Database/Query/Builder/Insert.php [ 152 ] » Kohana_Database->quote()
147 foreach ($group as $offset => $value) 148 { 149 if ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) 150 { 151 // Quote the value, it is not a parameter 152 $group[$offset] = $db->quote($value); 153 } 154 } 155 156 $groups[] = '('.implode(', ', $group).')'; 157 }
-
MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Insert->compile()
229 { 230 $object_params = $this->_object_params; 231 } 232 233 // Compile the SQL query 234 $sql = $this->compile($db); 235 236 if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) 237 { 238 // Set the cache key based on the database instance name and SQL 239 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
APPPATH/classes/Controller/Launcher/Downloading.php [ 59 ] » Kohana_Database_Query->execute()
54 Arr::get($_SERVER, 'HTTP_USER_AGENT', ''), 55 Arr::get($_SERVER, 'HTTP_REFERER', ''), 56 Arr::get($_GET, 'r', ''), 57 time() 58 )) 59 ->execute('mstat'); 60 61 if($referal_id) { 62 $filename = Functions::buildFileName($type, $release->version, $is_jar ? 'jar' : 'exe'); 63 $path = Launcher_Static::downloadDir() . '/'.$filename; 64
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Launcher_Downloading->action_index()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke()
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute()
988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * 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(TRUE, array(), FALSE) 120 ->execute() 121 ->send_headers(TRUE) 122 ->body(); 123 }