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 [ 171 ] » Kohana_Database_MySQL->connect()
166 } 167 168 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 169 { 170 // Make sure the database is connected 171 $this->_connection or $this->connect(); 172 173 if (Kohana::$profiling) 174 { 175 // Benchmark this query for the current instance 176 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/Kohana/Database/MySQL.php [ 359 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(47) "SHOW FULL COLUMNS FROM `cs_articles_categories`"
2
bool FALSE
354 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 355 } 356 else 357 { 358 // Find all column names 359 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 360 } 361 362 $count = 0; 363 $columns = array(); 364 foreach ($result as $row)
-
MODPATH/orm/classes/Kohana/ORM.php [ 1668 ] » Kohana_Database_MySQL->list_columns(arguments)
0
string(22) "cs_articles_categories"
1663 * @return array 1664 */ 1665 public function list_columns() 1666 { 1667 // Proxy to database 1668 return $this->_db->list_columns($this->_table_name); 1669 } 1670 1671 /** 1672 * Returns an ORM model for the given one-one related alias 1673 *
-
APPPATH/classes/Breezy/ORM.php [ 244 ] » Kohana_ORM->list_columns()
239 240 return $relationships; 241 } 242 243 public function list_columns(){ 244 $columns = parent::list_columns(); 245 246 foreach($columns as $key => $column){ 247 if(isset($column['comment'])){ 248 249 $columns[$key]['label'] = $column['comment'] ? $column['comment'] : $key;
-
MODPATH/orm/classes/Kohana/ORM.php [ 444 ] » Breezy_ORM->list_columns()
439 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 440 } 441 else 442 { 443 // Grab column information from database 444 $this->_table_columns = $this->list_columns(); 445 446 // Load column cache 447 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 448 } 449 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 389 ] » Kohana_ORM->reload_columns()
384 { 385 $this->{$property} = $value; 386 } 387 388 // Load column information 389 $this->reload_columns(); 390 391 // Clear initial model state 392 $this->clear(); 393 } 394
-
APPPATH/classes/Breezy/ORM.php [ 54 ] » Kohana_ORM->_initialize()
49 $this->_has_many[$name]['through'] = ORM::$prefix.'_'.$definition['through']; 50 } 51 } 52 } 53 54 return parent::_initialize(); 55 } 56 57 public function primary_value(){ 58 return 'name'; 59 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 254 ] » Breezy_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 {
-
APPPATH/classes/Breezy/ORM.php [ 20 ] » Kohana_ORM->__construct(arguments)
0
NULL
15 16 return ORM::$prefix; 17 } 18 19 public function __construct($id = NULL){ 20 parent::__construct($id); 21 22 if(isset($this->_table_columns['cms_created'])){ 23 $this->_created_column = array('column'=>'cms_created', 'format'=>'Y-m-d H:i:s'); 24 } 25
-
MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » Breezy_ORM->__construct(arguments)
0
NULL
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/bootstrap.php [ 27 ] » Kohana_ORM::factory(arguments)
0
string(17) "Articles_Category"
22 'controller' => 'Articles', 23 'action' => 'browse', 24 ]); 25 26 // Handlovani kategorii - vygeneruji vsechny routy pro nazvy kategorii 27 foreach(ORM::factory('Articles_Category')->filter()->find_all() as $ac){ 28 Route::set($ac->cms_uri, $ac->cms_uri)->defaults([ 29 'controller' => 'Home', 30 'action' => 'index', 31 ]) 32 ->filter(function($route, $params, $request) use ($ac) {
-
MODPATH/breezy/classes/Breezy/CMS.php [ 74 ] » require(arguments)
0
string(59) "/var/www/czechdesign.cz/www/document_root/app/bootstrap.php"
69 I18n::lang(self::$_language['i18n']); 70 Assets::$group = self::$_language['assets']; 71 } 72 73 // Load bootstrap 74 require APPPATH.'bootstrap'.EXT; 75 } 76 77 public static function strategies($request){ 78 URI_Processor::clear(); 79
-
DOCROOT/index.php [ 153 ] » Breezy_CMS::init(arguments)
0
string(8) "frontend"
148 * If no source is specified, the URI will be automatically detected. 149 */ 150 else{ 151 $uri = CMS::detect_uri(); 152 153 CMS::init(stripos($uri.'/', CMS::$backend_uri) ? 'backend' : 'frontend'); 154 155 echo Request::factory($uri, array(), FALSE)->execute()->send_headers(TRUE)->body(); 156 }