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 `projects`"
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) "projects"
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/work.php [ 41 ] » Kohana_ORM::factory(arguments)
model
string(7) "project"
36 } 37 38 public function action_item() 39 { 40 $this->current = 'work'; 41 $project = ORM::factory('project') 42 ->where('YEAR("date")', '=', $this->request->param('year')) 43 ->where('stub', '=', $this->request->param('stub')) 44 ->find(); 45 46 if (!$project->loaded())
-
{PHP internal call} » Controller_Work->action_item(arguments)
0
string(4) "2011"
1
string(12) "ward-seaford"
-
SYSPATH/classes/kohana/request.php [ 1025 ] » ReflectionMethod->invokeArgs(arguments)
object
object Controller_Work(9)
{ public template => string(0) "" public title => string(0) "" public params => array(0) public head => array(0) public ajax => NULL public current => string(4) "work" 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(18) "work/<year>/<stub>" protected _regex => array(1) ( "year" => string(10) "([0-9]{4})" ) protected _defaults => array(2) ( "controller" => string(4) "work" "action" => string(4) "item" ) protected _route_regex => string(54) "#^work/(?P<year>([0-9]{4}))/(?P<stub>[^/.,;?\n]++)$#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) "work" public action => string(4) "item" public uri => string(22) "work/2011/ward-seaford" protected _params => array(2) ( "year" => string(4) "2011" "stub" => string(12) "ward-seaford" ) }args
array(2) ( "year" => string(4) "2011" "stub" => string(12) "ward-seaford" )
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;