MODPATH/mysqli/classes/Database/MySQLi.php [ 59 ]
54 catch (Exception $e)
55 {
56 // No connection exists
57 $this->_connection = NULL;
58
59 throw new Database_Exception(':error',
60 array(':error' => $e->getMessage()),
61 $e->getCode());
62 }
63
64 // \xFF is a better delimiter, but the PHP driver uses underscore
-
MODPATH/mysqli/classes/Database/MySQLi.php [ 157 ] » Database_MySQLi->connect()
152 } 153 154 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 155 { 156 // Make sure the database is connected 157 $this->_connection or $this->connect(); 158 159 if (Kohana::$profiling) 160 { 161 // Benchmark this query for the current instance 162 $benchmark = Profiler::start("Database ({$this->_instance})", $sql); -
MODPATH/mysqli/classes/Database/MySQLi.php [ 338 ] » Database_MySQLi->query()
333 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 334 } 335 else 336 { 337 // Find all column names 338 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 339 } 340 341 $count = 0; 342 $columns = array(); 343 foreach ($result as $row) -
MODPATH/orm/classes/Kohana/ORM.php [ 1671 ] » Database_MySQLi->list_columns()
1666 * @return array 1667 */ 1668 public function list_columns() 1669 { 1670 // Proxy to database 1671 return $this->_db->list_columns($this->_table_name); 1672 } 1673 1674 /** 1675 * Returns an ORM model for the given one-one related alias 1676 * -
MODPATH/orm/classes/Kohana/ORM.php [ 441 ] » Kohana_ORM->list_columns()
436 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 437 } 438 else 439 { 440 // Grab column information from database 441 $this->_table_columns = $this->list_columns(); 442 443 // Load column cache 444 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 445 } 446 } -
MODPATH/orm/classes/Kohana/ORM.php [ 386 ] » Kohana_ORM->reload_columns()
381 { 382 $this->{$property} = $value; 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 [ 254 ] » Kohana_ORM->_initialize()
249 * 250 * @param mixed $id Parameter for find or object to load 251 */ 252 public function __construct($id = NULL) 253 { 254 $this->_initialize(); 255 256 if ($id !== NULL) 257 { 258 if (is_array($id)) 259 { -
MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » Kohana_ORM->__construct()
41 public static function factory($model, $id = NULL) 42 { 43 // Set class name 44 $model = 'Model_'.$model; 45 46 return new $model($id); 47 } 48 49 /** 50 * "Has one" relationships 51 * @var array -
APPPATH/config/debug_toolbar.php [ 10 ] » Kohana_ORM::factory()
5 * NOTE: if IN_PRODUCTION is set to TRUE, the toolbar will 6 * not automatically render, even if auto_render is TRUE 7 */ 8 $config['auto_render'] = ( 9 Kohana::$environment > Kohana::PRODUCTION 10 || ORM::factory('User')->isAdmin() 11 ); 12 13 /* 14 * If true, the toolbar will default to the minimized position 15 */ -
SYSPATH/classes/Kohana/Core.php [ 821 ] » include(arguments)
0string(61) "/home/jekaby/public_html/application/config/debug_toolbar.php"816 * @param string $file 817 * @return mixed 818 */ 819 public static function load($file) 820 { 821 return include $file; 822 } 823 824 /** 825 * Provides simple file-based caching for strings and arrays: 826 * -
SYSPATH/classes/Kohana/Config/File/Reader.php [ 49 ] » Kohana_Core::load()
44 if ($files = Kohana::find_file($this->_directory, $group, NULL, TRUE)) 45 { 46 foreach ($files as $file) 47 { 48 // Merge each file to the configuration array 49 $config = Arr::merge($config, Kohana::load($file)); 50 } 51 } 52 53 return $config; 54 } -
SYSPATH/classes/Kohana/Config.php [ 130 ] » Kohana_Config_File_Reader->load()
125 126 foreach ($sources as $source) 127 { 128 if ($source instanceof Kohana_Config_Reader) 129 { 130 if ($source_config = $source->load($group)) 131 { 132 $config = Arr::merge($config, $source_config); 133 } 134 } 135 } -
MODPATH/debugtoolbar/init.php [ 4 ] » Kohana_Config->load()
1 <?php defined('SYSPATH') or die('No direct script access.'); 2 3 // Load FirePHP if it enabled in config 4 if(Kohana::$config->load('debug_toolbar.firephp_enabled') === TRUE){ 5 $file = 'firephp/packages/core/lib/FirePHPCore/FirePHP.class'; 6 $firePHP = Kohana::find_file('vendor', $file); 7 if( ! $firePHP) throw new Kohana_Exception('The FirePHP :file could not be found', array(':file'=>$file)); 8 require_once $firePHP; 9 } -
SYSPATH/classes/Kohana/Core.php [ 594 ] » require_once(arguments)
0string(54) "/home/jekaby/public_html/modules/debugtoolbar/init.php"589 $init = $path.'init'.EXT; 590 591 if (is_file($init)) 592 { 593 // Include the module initialization file once 594 require_once $init; 595 } 596 } 597 598 return Kohana::$_modules; 599 } -
APPPATH/bootstrap.php [ 108 ] » Kohana_Core::modules()
103 104 /** 105 * Enable modules. Modules are referenced by a relative or absolute path. 106 */ 107 Kohana::modules(array( 108 'auth' => MODPATH.'auth', // Basic authentication 109 'cache' => MODPATH.'cache', // Caching with multiple backends 110 // 'codebench' => MODPATH.'codebench', // Benchmarking tool 111 'database' => MODPATH.'database', // Database access 112 'image' => MODPATH.'image', // Image manipulation 113 'minion' => MODPATH.'minion', // CLI Tasks -
DOCROOT/index.php [ 122 ] » require(arguments)
0string(50) "/home/jekaby/public_html/application/bootstrap.php"117 return empty($values) ? $string : strtr($string, $values); 118 } 119 } 120 121 // Bootstrap the application 122 require APPPATH.'bootstrap'.EXT; 123 124 if (PHP_SAPI == 'cli') // Try and load minion 125 { 126 class_exists('Minion_Task') OR die('Please enable the Minion module for CLI support.'); 127 set_exception_handler(array('Minion_Exception', 'handler'));