MODPATH/database/classes/kohana/database/mysql.php [ 67 ]
62 catch (ErrorException $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(mysql_errno(), '[:code] :error', array(
68 ':code' => mysql_errno(),
69 ':error' => mysql_error(),
70 ));
71 }
72
-
MODPATH/database/classes/kohana/database/mysql.php [ 158 ] » Kohana_Database_MySQL->connect()
153 } 154 155 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 156 { 157 // Make sure the database is connected 158 $this->_connection or $this->connect(); 159 160 if ( ! empty($this->_config['profiling'])) 161 { 162 // Benchmark this query for the current instance 163 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/kohana/database/mysql.php [ 348 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(33) "SHOW FULL COLUMNS FROM `wg_pages`"
2
bool FALSE
343 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 344 } 345 else 346 { 347 // Find all column names 348 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 349 } 350 351 $count = 0; 352 $columns = array(); 353 foreach ($result as $row)
-
MODPATH/orm/classes/kohana/orm.php [ 1551 ] » Kohana_Database_MySQL->list_columns(arguments)
0
string(5) "pages"
1546 * @return array 1547 */ 1548 public function list_columns() 1549 { 1550 // Proxy to database 1551 return $this->_db->list_columns($this->_table_name); 1552 } 1553 1554 /** 1555 * Proxy method to Database field_data. 1556 *
-
MODPATH/orm/classes/kohana/orm.php [ 439 ] » Kohana_ORM->list_columns(arguments)
0
bool TRUE
434 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 435 } 436 else 437 { 438 // Grab column information from database 439 $this->_table_columns = $this->list_columns(TRUE); 440 441 // Load column cache 442 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 443 } 444 }
-
MODPATH/orm/classes/kohana/orm.php [ 386 ] » Kohana_ORM->reload_columns()
381 382 $this->_has_many[$alias] = array_merge($defaults, $details); 383 } 384 385 // Load column information 386 $this->reload_columns(); 387 388 // Clear initial model state 389 $this->clear(); 390 } 391
-
MODPATH/orm/classes/kohana/orm.php [ 300 ] » Kohana_ORM->_initialize()
295 * @param mixed $id Parameter for find or object to load 296 * @return void 297 */ 298 public function __construct($id = NULL) 299 { 300 $this->_initialize(); 301 302 if ($id !== NULL) 303 { 304 if (is_array($id)) 305 {
-
MODPATH/orm/classes/kohana/orm.php [ 109 ] » Kohana_ORM->__construct(arguments)
0
NULL
104 public static function factory($model, $id = NULL) 105 { 106 // Set class name 107 $model = 'Model_'.ucfirst($model); 108 109 return new $model($id); 110 } 111 112 /** 113 * "Has one" relationships 114 * @var array
-
DOCROOT/packages/core/init.php [ 64 ] » Kohana_ORM::factory(arguments)
0
string(4) "page"
59 'controller' => 'auth' 60 )); 61 62 Wg_Twig_Context::add_globals(array( 63 'auth' => new Context_Auth, 64 'top_menu' => ORM::factory('page') 65 ->where('top_menu', '=', 1) 66 ->find_all(), 67 'left_menu' => ORM::factory('page') 68 ->where('left_menu', '=', 1) 69 ->find_all()
-
SYSPATH/classes/kohana/core.php [ 562 ] » require_once(arguments)
0
string(63) "/home/host1336171/russlift.ru/htdocs/www/packages/core/init.php"
557 $init = $path.'init'.EXT; 558 559 if (is_file($init)) 560 { 561 // Include the module initialization file once 562 require_once $init; 563 } 564 } 565 566 return Kohana::$_modules; 567 }
-
APPPATH/bootstrap.php [ 111 ] » Kohana_Core::modules(arguments)
0
array(18) ( 0 => string(55) "/home/host1336171/russlift.ru/htdocs/www/custom/catalog" 1 => string(52) "/home/host1336171/russlift.ru/htdocs/www/custom/main" 2 => string(55) "/home/host1336171/russlift.ru/htdocs/www/custom/migrate" 3 => string(57) "/home/host1336171/russlift.ru/htdocs/www/custom/quotation" 4 => string(52) "/home/host1336171/russlift.ru/htdocs/www/custom/user" 5 => string(54) "/home/host1336171/russlift.ru/htdocs/www/packages/core" 6 => string(58) "/home/host1336171/russlift.ru/htdocs/www/packages/feedback" 7 => string(54) "/home/host1336171/russlift.ru/htdocs/www/packages/news" 8 => string(53) "/home/host1336171/russlift.ru/htdocs/www/modules/auth" 9 => string(54) "/home/host1336171/russlift.ru/htdocs/www/modules/cache" 10 => string(57) "/home/host1336171/russlift.ru/htdocs/www/modules/database" 11 => string(54) "/home/host1336171/russlift.ru/htdocs/www/modules/email" 12 => string(54) "/home/host1336171/russlift.ru/htdocs/www/modules/image" 13 => string(52) "/home/host1336171/russlift.ru/htdocs/www/modules/orm" 14 => string(59) "/home/host1336171/russlift.ru/htdocs/www/modules/pagination" 15 => string(58) "/home/host1336171/russlift.ru/htdocs/www/modules/recaptcha" 16 => string(54) "/home/host1336171/russlift.ru/htdocs/www/modules/sform" 17 => string(53) "/home/host1336171/russlift.ru/htdocs/www/modules/twig" )
106 array_merge( 107 glob( DOCROOT.'custom/*', GLOB_ONLYDIR ), 108 glob( DOCROOT.'packages/*', GLOB_ONLYDIR ), 109 glob( DOCROOT.'modules/*', GLOB_ONLYDIR ) 110 ) 111 ); 112 113 set_exception_handler(array('Wg_Exception_Handler', 'handle')); 114 115 Route::set('aux', 'aux/create_admin') 116 ->defaults(array(
-
DOCROOT/index.php [ 104 ] » require(arguments)
0
string(59) "/home/host1336171/russlift.ru/htdocs/www/site/bootstrap.php"
99 { 100 define('KOHANA_START_MEMORY', memory_get_usage()); 101 } 102 103 // Bootstrap the application 104 require APPPATH.'bootstrap'.EXT; 105 106 /** 107 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 108 * If no source is specified, the URI will be automatically detected. 109 */