DOCROOT/core/libraries/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(':error',
68 array(':error' => mysql_error()),
69 mysql_errno());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
-
DOCROOT/core/libraries/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);
-
DOCROOT/core/libraries/database/classes/kohana/database/query.php [ 225 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(47) "SELECT * FROM `q2_languages` WHERE `status` = 1"
2
bool FALSE
3
array(0)
220 return new Database_Result_Cached($result, $sql, $this->_as_object, $this->_object_params); 221 } 222 } 223 224 // Execute the query 225 $result = $db->query($this->_type, $sql, $this->_as_object, $this->_object_params); 226 227 if (isset($cache_key)) 228 { 229 // Cache the result array 230 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/i18n.php [ 138 ] » Kohana_Database_Query->execute()
133 134 if (!$languages = Kohana::cache($cache_name)) { 135 $languages = DB::select() 136 ->from('languages') 137 ->where('status', '=', 1) 138 ->execute() 139 ->as_array('id'); 140 141 Kohana::cache($cache_name, $languages, DATE::YEAR); 142 } 143 I18n::$_languages = $languages;
-
APPPATH/classes/i18n.php [ 153 ] » I18n::_languages()
148 public static function languages($key = NULL, $separator = NULL) 149 { 150 $cache_name = 'I18n::languages(' . $key . ',' . $separator . ')'; 151 152 if (!$result = Kohana::cache($cache_name)) { 153 $languages = I18n::_languages(); 154 155 $result = array(); 156 157 foreach ($languages as $id => $field) 158 {
-
MODPATH/api/init.php [ 10 ] » I18n::languages(arguments)
0
string(2) "id"
1
string(1) "|"
5 * @author Galitsky Olexandr 6 * @copyright © ITQUA 2011 (http://itqua.com) 7 */ 8 9 10 $lang_list = '(' . I18n::languages('id', '|') . ')\b'; 11 12 # shop route 13 14 Route::set('api-default', '(<language>/)api(/<controller>(.<action>(/<id>)))(<overflow>)', 15 array(
-
DOCROOT/core/kohana.php [ 101 ] » require_once(arguments)
0
string(66) "/var/www/cshop/data/www/concord-shop.com/core/modules/api/init.php"
96 $init = $path . 'init' . EXT; 97 98 if (is_file($init)) 99 { 100 // Include the module initialization file once 101 require_once $init; 102 } 103 } 104 105 return Kohana::$_modules; 106 }
-
DOCROOT/core/bootstrap.php [ 147 ] » Kohana::modules(arguments)
0
array(26) ( "api" => string(57) "/var/www/cshop/data/www/concord-shop.com/core/modules/api" "antispam" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/antispam" "extensions" => string(64) "/var/www/cshop/data/www/concord-shop.com/core/modules/extensions" "auth" => string(58) "/var/www/cshop/data/www/concord-shop.com/core/modules/auth" "cache" => string(59) "/var/www/cshop/data/www/concord-shop.com/core/modules/cache" "captcha" => string(61) "/var/www/cshop/data/www/concord-shop.com/core/modules/captcha" "crontask" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/crontask" "controlbar" => string(64) "/var/www/cshop/data/www/concord-shop.com/core/modules/controlbar" "codebench" => string(63) "/var/www/cshop/data/www/concord-shop.com/core/modules/codebench" "debugbar" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/debugbar" "html_ext" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/html_ext" "image" => string(59) "/var/www/cshop/data/www/concord-shop.com/core/modules/image" "i18n_plural" => string(65) "/var/www/cshop/data/www/concord-shop.com/core/modules/i18n_plural" "mail" => string(58) "/var/www/cshop/data/www/concord-shop.com/core/modules/mail" "orm" => string(57) "/var/www/cshop/data/www/concord-shop.com/core/modules/orm" "orm_mptt" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/orm_mptt" "notice" => string(60) "/var/www/cshop/data/www/concord-shop.com/core/modules/notice" "pagination" => string(64) "/var/www/cshop/data/www/concord-shop.com/core/modules/pagination" "shop" => string(58) "/var/www/cshop/data/www/concord-shop.com/core/modules/shop" "filemanager" => string(65) "/var/www/cshop/data/www/concord-shop.com/core/modules/filemanager" "wysiwyg" => string(61) "/var/www/cshop/data/www/concord-shop.com/core/modules/wysiwyg" "gallery" => string(68) "/var/www/cshop/data/www/concord-shop.com/core/modules/gal#000000lery" "unittest" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/unittest" "phpexcel" => string(62) "/var/www/cshop/data/www/concord-shop.com/core/modules/phpexcel" "sitemap" => string(61) "/var/www/cshop/data/www/concord-shop.com/core/modules/sitemap" "xml" => string(57) "/var/www/cshop/data/www/concord-shop.com/core/modules/xml" )
142 'sitemap' => MODPATH.'sitemap', 143 // 'sitemap' => MODPATH.'sitemap', 144 145 'xml' => MODPATH.'xml', // Object Relationship Mapping 146 ) 147 ); 148 149 // Change the default cache driver to memcache 150 Cache::$default = 'file'; 151 152 require_once COREPATH . 'routes.php';
-
DOCROOT/index.php [ 28 ] » require_once(arguments)
0
string(59) "/var/www/cshop/data/www/concord-shop.com/core/bootstrap.php"
23 define('SYSPATH', COREPATH.'system'.DS); 24 // Load empty core extension 25 require_once COREPATH.'kohana.php'; 26 27 // Bootstrap the application 28 require_once COREPATH.'bootstrap.php'; 29 error_reporting(E_ALL|E_STRICT); 30 ini_set('display_errors', 1);