MODPATH/database/classes/kohana/database/mysql.php [ 67 ]
62 catch (Exception $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(':error',
68 array(':error' => $e->getMessage()),
69 $e->getCode());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
-
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)),
-
MODPATH/database/classes/kohana/database.php [ 473 ] » Kohana_Database_MySQL->escape(arguments)
0
string(2) "42"
468 { 469 // Convert to non-locale aware float to prevent possible commas 470 return sprintf('%F', $value); 471 } 472 473 return $this->escape($value); 474 } 475 476 /** 477 * Quote a database column name and add the table prefix if needed. 478 *
-
MODPATH/database/classes/kohana/database/query/builder.php [ 116 ] » Kohana_Database->quote(arguments)
0
string(2) "42"
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(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(12) "naprokat_old" "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(7) "city.id" 1 => string(1) "=" 2 => string(2) "42" ) ) )
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(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(12) "naprokat_old" "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/orm/classes/kohana/orm.php [ 972 ] » 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(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(12) "naprokat_old" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
967 return $result; 968 } 969 else 970 { 971 // Load the result as an associative array 972 $result = $this->_db_builder->as_assoc()->execute($this->_db); 973 974 $this->reset(); 975 976 if ($result->count() === 1) 977 {
-
MODPATH/orm/classes/kohana/orm.php [ 898 ] » Kohana_ORM->_load_result(arguments)
0
bool FALSE
893 } 894 } 895 896 $this->_build(Database::SELECT); 897 898 return $this->_load_result(FALSE); 899 } 900 901 /** 902 * Finds multiple database rows and returns an iterator of the rows found. 903 *
-
MODPATH/orm/classes/kohana/orm.php [ 444 ] » Kohana_ORM->find()
439 440 // Only reload the object if we have one to reload 441 if ($this->_loaded) 442 return $this->clear() 443 ->where($this->_object_name.'.'.$this->_primary_key, '=', $primary_key) 444 ->find(); 445 else 446 return $this->clear(); 447 } 448 449 /**
-
MODPATH/orm/classes/kohana/orm.php [ 535 ] » Kohana_ORM->reload()
530 } 531 532 if ($this->_reload_on_wakeup === TRUE) 533 { 534 // Reload the object 535 $this->reload(); 536 } 537 } 538 539 /** 540 * Handles retrieval of all model values, relationships, and metadata.
-
{PHP internal call} » Kohana_ORM->unserialize(arguments)
data
string(9024) "a:7:{s:18:"_primary_key_value";s:2:"42";s:7:"_object";a:24:{s:2:"id";s:2:"42";s:4:"name";s:18:"Пятигорск";s:2:"h1";N;s:5:"name2" …"
-
MODPATH/cache/classes/kohana/cache/sqlite.php [ 110 ] » unserialize(arguments)
variable_representation
string(9049) "C:10:"Model_City":9024:{a:7:{s:18:"_primary_key_value";s:2:"42";s:7:"_object";a:24:{s:2:"id";s:2:"42";s:4:"name";s:18:"Пятигорск …"
105 { 106 // Disable notices for unserializing 107 $ER = error_reporting(~E_NOTICE); 108 109 // Return the valid cache data 110 $data = unserialize($result->cache); 111 112 // Turn notices back on 113 error_reporting($ER); 114 115 // Return the resulting data
-
APPPATH/classes/model/city.php [ 258 ] » Kohana_Cache_Sqlite->get(arguments)
0
string(28) "get_city_by_alias_pyatigorsk"
253 return $result; 254 } 255 256 public function get_city_by_alias($str) { 257 $key = 'get_city_by_alias_'.$str; 258 $value = Cache::instance()->get($key); 259 if($value) return $value; 260 $value = $this->where('alias', '=', $str)->where('enabled', '=', 1)->find(); 261 Cache::instance()->set_with_tags($key, $value, NULL, array('cities', 'city_'.$value->id)); 262 return $value; 263 }
-
APPPATH/config/routes.php [ 181 ] » Model_City->get_city_by_alias(arguments)
0
string(10) "pyatigorsk"
176 'action' => 'view' 177 )); 178 179 $firs_segment = @explode('/',URL::site(Request::detect_uri())); 180 if (!empty($firs_segment[1])) 181 $city = ORM::factory('city')->get_city_by_alias($firs_segment[1]); 182 183 184 if (!empty($city->id)) { 185 Route::set('locations', $firs_segment[1].'/locations') 186 ->defaults(array(
-
APPPATH/bootstrap.php [ 153 ] » require(arguments)
0
string(72) "/var/www/naprokat/data/www/old.naprokat.ru/application/config/routes.php"
148 149 if ( ! Route::cache()) 150 { 151 if (is_file(APPPATH.'config/routes'.EXT)) { 152 // Application extends the core 153 require APPPATH.'config/routes'.EXT; 154 } 155 // Cache the routes 156 //Route::cache(TRUE); 157 } 158 set_exception_handler(array('Kohana_Exception', 'handler'));
-
DOCROOT/index.php [ 102 ] » require(arguments)
0
string(68) "/var/www/naprokat/data/www/old.naprokat.ru/application/bootstrap.php"
97 { 98 define('KOHANA_START_MEMORY', memory_get_usage()); 99 } 100 101 // Bootstrap the application 102 require APPPATH.'bootstrap'.EXT; 103 104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */