MODPATH/database/classes/kohana/database/mysql.php [ 56 ]
51 try
52 {
53 if (empty($persistent))
54 {
55 // Create a connection and force it to be a new link
56 $this->_connection = mysql_connect($hostname, $username, $password, TRUE);
57 }
58 else
59 {
60 // Create a persistent connection
61 $this->_connection = mysql_pconnect($hostname, $username, $password);
-
{PHP internal call} » Kohana_Core::error_handler(arguments)
code
integer 8192
error
string(111) "mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead"
file
string(78) "/home1/norookie/public_html/modules/database/classes/kohana/database/mysql.php"
line
integer 56
4
array(7) ( "hostname" => string(9) "localhost" "username" => string(13) "norookie_user" "password" => string(4) "demo" "persistent" => bool FALSE "database" => string(11) "norookie_db" "port" => NULL "socket" => NULL )
-
MODPATH/database/classes/kohana/database/mysql.php [ 56 ] » mysql_connect(arguments)
hostname
string(9) "localhost"
username
string(13) "norookie_user"
password
string(4) "demo"
new
bool TRUE
51 try 52 { 53 if (empty($persistent)) 54 { 55 // Create a connection and force it to be a new link 56 $this->_connection = mysql_connect($hostname, $username, $password, TRUE); 57 } 58 else 59 { 60 // Create a persistent connection 61 $this->_connection = mysql_pconnect($hostname, $username, $password);
-
MODPATH/database/classes/kohana/database/mysql.php [ 151 ] » Kohana_Database_MySQL->connect()
146 } 147 148 public function query($type, $sql, $as_object) 149 { 150 // Make sure the database is connected 151 $this->_connection or $this->connect(); 152 153 if ( ! empty($this->_config['profiling'])) 154 { 155 // Benchmark this query for the current instance 156 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/kohana/database/mysql.php [ 289 ] » Kohana_Database_MySQL->query(arguments)
type
integer 1
sql
string(33) "SHOW FULL COLUMNS FROM `artworks`"
as_object
bool FALSE
284 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 285 } 286 else 287 { 288 // Find all column names 289 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 290 } 291 292 $count = 0; 293 $columns = array(); 294 foreach ($result as $row)
-
MODPATH/orm/classes/kohana/orm.php [ 1149 ] » Kohana_Database_MySQL->list_columns(arguments)
table
string(8) "artworks"
1144 * @return array 1145 */ 1146 public function list_columns() 1147 { 1148 // Proxy to database 1149 return $this->_db->list_columns($this->_table_name); 1150 } 1151 1152 /** 1153 * Proxy method to Database field_data. 1154 *
-
MODPATH/orm/classes/kohana/orm.php [ 1033 ] » Kohana_ORM->list_columns(arguments)
0
bool TRUE
1028 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 1029 } 1030 else 1031 { 1032 // Grab column information from database 1033 $this->_table_columns = $this->list_columns(TRUE); 1034 1035 // Load column cache 1036 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 1037 } 1038 }
-
MODPATH/orm/classes/kohana/orm.php [ 509 ] » Kohana_ORM->reload_columns()
504 505 $this->_has_many[$alias] = array_merge($defaults, $details); 506 } 507 508 // Load column information 509 $this->reload_columns(); 510 } 511 512 /** 513 * Initializes validation rules, callbacks, filters, and labels 514 *
-
MODPATH/orm/classes/kohana/orm.php [ 140 ] » Kohana_ORM->_initialize()
135 // Optimize for performance 136 $this->_ignored_columns = array_combine($this->_ignored_columns, $this->_ignored_columns); 137 } 138 139 // Initialize database 140 $this->_initialize(); 141 142 // Clear the object 143 $this->clear(); 144 145 if ($id !== NULL)
-
MODPATH/orm/classes/kohana/orm.php [ 112 ] » Kohana_ORM->__construct(arguments)
id
NULL
107 public static function factory($model, $id = NULL) 108 { 109 // Set class name 110 $model = 'Model_'.ucfirst($model); 111 112 return new $model($id); 113 } 114 115 /** 116 * Prepares the model database connection and loads the object. 117 *
-
APPPATH/classes/controller/shop.php [ 26 ] » Kohana_ORM::factory(arguments)
model
string(7) "artwork"
21 public function action_index() 22 { 23 $this->title = 'Art Shop'; 24 $this->template = 'shop/index'; 25 26 $this->params['art'] = ORM::factory('artwork')->find_all(); 27 $this->params['artist'] = NULL; 28 } 29 30 public function action_browse() 31 {
-
{PHP internal call} » Controller_Shop->action_index()
-
SYSPATH/classes/kohana/request.php [ 1025 ] » ReflectionMethod->invokeArgs(arguments)
object
object Controller_Shop(9)
{ public template => string(10) "shop/index" public title => string(8) "Art Shop" public params => array(0) public head => array(6) ( 0 => string(80) "<script type="text/javascript" src="/assets/js/shadowbox/shadowbox.js"></script>" 1 => string(83) "<link type="text/css" href="/assets/js/shadowbox/shadowbox.css" rel="stylesheet" />" 2 => string(74) "<script type="text/javascript" src="/assets/js/jquery.jqzoom.js"></script>" 3 => string(71) "<link type="text/css" href="/assets/css/jqzoom.css" rel="stylesheet" />" 4 => string(300) "<script type='text/javascript'>$(function(){$('.slides').cycle({fx:'scrollHorz',prev:'#prev',next:'#next',pause:1,pauseOnPagerHo …" 5 => string(165) "$(document).ready(function() { $('.artwork-image').jqzoom({zoomWidth: 300,zoomHeight: 300,showEffect:'show',hideEffect:'fadeout' …" ) public ajax => NULL public current => string(4) "shop" public auth => object UserAuth(1)
{ protected user => bool FALSE }
public session => NULL public request => object Request(9){ public route => object Route(4)
}{ protected _uri => string(19) "art-shop(/<action>)" protected _regex => array(1) ( "action" => string(5) "index" ) protected _defaults => array(2) ( "controller" => string(4) "shop" "action" => string(5) "index" ) protected _route_regex => string(37) "#^art-shop(?:/(?P<action>index))?$#uD" }
public status => integer 500 public response => string(0) "" public headers => array(1) ( "Content-Type" => string(24) "text/html; charset=utf-8" ) public directory => string(0) "" public controller => string(4) "shop" public action => string(5) "index" public uri => string(8) "art-shop" protected _params => array(0) }args
array(0)
1020 1021 // Determine the action to use 1022 $action = empty($this->action) ? Route::$default_action : $this->action; 1023 1024 // Execute the main action with the parameters 1025 $class->getMethod('action_'.$action)->invokeArgs($controller, $this->_params); 1026 1027 // Execute the "after action" method 1028 $class->getMethod('after')->invoke($controller); 1029 } 1030 catch (Exception $e)
-
APPPATH/classes/application.php [ 11 ] » Kohana_Request->execute()
6 { 7 try 8 { 9 $request = Request::instance(); 10 $response = $request 11 ->execute() 12 ->send_headers() 13 ->response; 14 15 echo $response; 16 }
-
APPPATH/bootstrap.php [ 116 ] » Application::run()
111 /** 112 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 113 * If no source is specified, the URI will be automatically detected. 114 */ 115 116 Application::run();
-
DOCROOT/index.php [ 103 ] » require(arguments)
0
string(53) "/home1/norookie/public_html/application/bootstrap.php"
98 // Load empty core extension 99 require SYSPATH.'classes/kohana'.EXT; 100 } 101 102 // Bootstrap the application 103 require APPPATH.'bootstrap'.EXT;