APPPATH/classes/Database/MySQLi.php [ 96 ]
91 catch (Exception $e)
92 {
93 // No connection exists
94 $this->_connection = NULL;
95
96 throw new Database_Exception(':error', array(':error' => $e->getMessage()), $e->getCode());
97 }
98
99 // \xFF is a better delimiter, but the PHP driver uses underscore
100 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
101
-
APPPATH/classes/Database/MySQLi.php [ 464 ] » Database_MySQLi->connect()
459 } 460 461 public function escape($value) 462 { 463 // Make sure the database is connected 464 $this->_connection or $this->connect(); 465 466 if (($value = $this->_connection->real_escape_string( (string) $value)) === FALSE) 467 { 468 throw new Database_Exception(':error', array( 469 ':error' => $this->_connection->error, -
MODPATH/database/classes/Kohana/Database.php [ 478 ] » 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.php [ 116 ] » Kohana_Database->quote()
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 [ 372 ] » Kohana_Database_Query_Builder->_compile_conditions()
367 } 368 369 if ( ! empty($this->_where)) 370 { 371 // Add selection conditions 372 $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); 373 } 374 375 if ( ! empty($this->_group_by)) 376 { 377 // Add grouping -
MODPATH/database/classes/Kohana/Database/Query.php [ 234 ] » Kohana_Database_Query_Builder_Select->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/Lang.php [ 111 ] » Kohana_Database_Query->execute()
106 ->on('ts.id', '=', 'tk.translation_section_id') 107 ->join(['translation_languages', 'tl']) 108 ->on('tl.id', '=', 't.translation_language_id') 109 ->where('ts.app', '=', 'web') 110 ->where('tl.code', '=', $code) 111 ->execute(); 112 113 foreach ($rs as $row) 114 { 115 $key = $row['section_name'].'.'.$row['key']; 116 $arr[$key] = $row['str']; -
APPPATH/classes/Lang.php [ 95 ] » Lang::compile_from_database()
90 return static::$_compiled[$code] = $decoded; 91 } 92 } 93 } 94 95 return static::$_compiled[$code] = static::compile_from_database($code); 96 } 97 98 protected static function compile_from_database($code) 99 { 100 $arr = []; -
APPPATH/classes/Lang.php [ 15 ] » Lang::compile()
10 11 public static function get($key, $force_lang = null) 12 { 13 $key = strtolower($key); 14 $use_lang = ( ! empty($force_lang)) ? $force_lang : Utility::lang(); 15 $arr = static::compile($use_lang); 16 17 $str = Arr::get($arr, $key); 18 19 if ( ! isset($arr[$key]) AND $use_lang !== static::$_fallback) 20 { -
APPPATH/func.php [ 231 ] » Lang::get()
226 227 if ( ! function_exists('t')) 228 { 229 function t($arg, $force_lang = false) 230 { 231 return Lang::get($arg, $force_lang); 232 } 233 } -
APPPATH/views/public/home/navbar.php [ 5 ] » t()
1 <?php 2 $pages = [ 3 [ 4 'val' => 'welcome', 5 'label' => t('site.home'), 6 'uri' => '/', 7 ], 8 [ 9 'val' => 'app', 10 'label' => t('site.app'), -
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0string(100) "/home/forge/hotfix-dev-k.freshability.com/releases/68926003/application/views/public/home/navbar.php"57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 } -
SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()
231 */ 232 public function __toString() 233 { 234 try 235 { 236 return $this->render(); 237 } 238 catch (Exception $e) 239 { 240 /** 241 * Display the exception message. -
APPPATH/views/public/home/pub_template.php [ 25 ] » Kohana_View->__toString()
20 { 21 $page = null; 22 } 23 ?> 24 <body> 25 <?=View::factory('public/home/navbar')->set('current_page', $page)?> 26 <?=$content?> 27 <?=View::factory('public/home/footer')?> 28 </body> 29 </html> -
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0string(106) "/home/forge/hotfix-dev-k.freshability.com/releases/68926003/application/views/public/home/pub_template.php"57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture()
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 } -
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49 -
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92 -
{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 [ 179 ] » Kohana_Request->execute()
174 /** 175 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 176 * If no source is specified, the URI will be automatically detected. 177 */ 178 echo Request::factory(TRUE, array(), FALSE) 179 ->execute() 180 ->send_headers(TRUE) 181 ->body(); 182 }