MODPATH/database/classes/Kohana/Database/MySQLi.php [ 75 ]
70 catch (Exception $e)
71 {
72 // No connection exists
73 $this->_connection = NULL;
74
75 throw new Database_Exception(':error', [':error' => $e->getMessage()], $e->getCode());
76 }
77
78 // \xFF is a better delimiter, but the PHP driver uses underscore
79 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
80
-
MODPATH/database/classes/Kohana/Database/MySQLi.php [ 154 ] » Kohana_Database_MySQLi->connect( )
149 } 150 151 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 152 { 153 // Make sure the database is connected 154 $this->_connection or $this->connect(); 155 156 if (Kohana::$profiling) 157 { 158 // Benchmark this query for the current instance 159 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/Kohana/Database/MySQLi.php [ 337 ] » Kohana_Database_MySQLi->query( arguments )
0
integer 1
1
string(31) "SHOW FULL COLUMNS FROM `plates`"
2
bool FALSE
332 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 333 } 334 else 335 { 336 // Find all column names 337 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 338 } 339 340 $count = 0; 341 $columns = []; 342 foreach ($result as $row)
-
MODPATH/orm/classes/Kohana/ORM.php [ 1862 ] » Kohana_Database_MySQLi->list_columns( arguments )
0
string(8) "`plates`"
1857 * @return array 1858 */ 1859 public function list_columns() 1860 { 1861 // Proxy to database 1862 return $this->_db->list_columns($this->_table_name); 1863 } 1864 1865 /** 1866 * Returns an ORM model for the given one-one related alias 1867 *
-
MODPATH/orm/classes/Kohana/ORM.php [ 469 ] » Kohana_ORM->list_columns( )
464 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 465 } 466 else 467 { 468 // Grab column information from database 469 $this->_table_columns = $this->list_columns(); 470 471 // Load column cache 472 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 473 } 474 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 408 ] » Kohana_ORM->reload_columns( )
403 { 404 $this->{$property} = $value; 405 } 406 407 // Load column information 408 $this->reload_columns(); 409 410 // Clear initial model state 411 $this->clear(); 412 413 // Create the behaviors classes
-
MODPATH/orm/classes/Kohana/ORM.php [ 266 ] » Kohana_ORM->_initialize( )
261 * 262 * @param mixed $id Parameter for find or object to load 263 */ 264 public function __construct($id = NULL) 265 { 266 $this->_initialize(); 267 268 // Invoke all behaviors 269 foreach ($this->_behaviors as $behavior) 270 { 271 if (( ! $behavior->on_construct($this, $id)) OR $this->_loaded)
-
MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » Kohana_ORM->__construct( arguments )
0
array(1) ( "nwtitle" => string(7) "W333TOM" )
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/classes/Controller/Plate.php [ 322 ] » Kohana_ORM::factory( arguments )
0
string(11) "Model_plate"
1
array(1) ( "nwtitle" => string(7) "W333TOM" )
317 318 public function action_breakdown() 319 { 320 $this->session->delete('basket'); 321 $plate = ORM::factory('plate', array( 322 'nwtitle' => $this->request->param('plate') 323 )); 324 325 if( ! $plate->loaded() ) 326 { 327
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Plate->action_breakdown( )
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute( )
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke( arguments )
0
object Controller_Plate(6)
{ public template => object View(2)
{ protected _file => string(62) "/home/primoreg/public_html/application/views/template/base.php" protected _data => array(13) ( "search" => bool TRUE "styles" => array(4) ( 0 => string(19) "media/css/reset.css" 1 => string(18) "media/css/main.css" 2 => string(18) "media/css/page.css" 3 => string(19) "media/css/plate.css" ) "menus" => array(6) ( "main" => array(7) ( 0 => array(5) ( "id" => string(1) "4" "link" => string(4) "Home" "slug" => string(4) "home" "permanent" => string(1) "1" "page_id" => NULL ) 1 => array(5) ( "id" => string(1) "3" "link" => string(19) "Find a Number Plate" "slug" => string(12) "find-a-plate" "permanent" => string(1) "0" "page_id" => string(1) "6" ) 2 => array(5) ( "id" => string(2) "21" "link" => string(20) "Sell My Number Plate" "slug" => string(20) "sell-my-number-plate" "permanent" => string(1) "0" "page_id" => string(2) "22" ) 3 => array(5) ( "id" => string(1) "5" "link" => string(17) "Why choose Primo?" "slug" => string(16) "why-choose-primo" "permanent" => string(1) "0" "page_id" => string(1) "5" ) 4 => array(5) ( "id" => string(1) "6" "link" => string(11) "Help / FAQS" "slug" => string(13) "help-services" "permanent" => string(1) "0" "page_id" => string(1) "7" ) 5 => array(5) ( "id" => string(1) "1" "link" => string(4) "News" "slug" => string(7) "article" "permanent" => string(1) "1" "page_id" => NULL ) 6 => array(5) ( "id" => string(1) "7" "link" => string(10) "Contact Us" "slug" => string(10) "contact-us" "permanent" => string(1) "0" "page_id" => string(1) "8" ) ) "services-for-buyers" => array(8) ( 1 => array(5) ( "id" => string(2) "12" "link" => string(11) "Help & FAQs" "slug" => string(9) "help-faqs" "permanent" => string(1) "0" "page_id" => string(2) "13" ) 2 => array(5) ( "id" => string(1) "9" "link" => string(20) "Number Plate Options" "slug" => string(20) "number-plate-options" "permanent" => string(1) "0" "page_id" => string(2) "10" ) 3 => array(5) ( "id" => string(2) "10" "link" => string(15) "Payment Options" "slug" => string(15) "payment-options" "permanent" => string(1) "0" "page_id" => string(2) "11" ) 4 => array(5) ( "id" => string(2) "11" "link" => string(25) "Buying Terms & Conditions" "slug" => string(23) "buying-terms-conditions" "permanent" => string(1) "0" "page_id" => string(2) "12" ) 6 => array(5) ( "id" => string(2) "20" "link" => string(13) "Plates Wanted" "slug" => string(13) "plates-wanted" "permanent" => string(1) "0" "page_id" => string(2) "21" ) 7 => array(5) ( "id" => string(2) "27" "link" => string(18) "Phonetics Alphabet" "slug" => string(18) "phonetics-alphabet" "permanent" => string(1) "0" "page_id" => string(2) "28" ) 8 => array(5) ( "id" => string(2) "38" "link" => string(15) "Online Tracking" "slug" => string(14) "customer/login" "permanent" => NULL "page_id" => NULL ) 9 => array(5) ( "id" => string(2) "53" "link" => string(10) "Klarna FAQ" "slug" => string(10) "klarna-faq" "permanent" => string(1) "0" "page_id" => string(3) "504" ) ) "number-plates-explained" => array(9) ( 0 => array(5) ( "id" => string(2) "14" "link" => string(18) "Number Plate Dates" "slug" => string(18) "number-plate-dates" "permanent" => string(1) "0" "page_id" => string(2) "15" ) 1 => array(5) ( "id" => string(2) "15" "link" => string(22) "Dateless Number Plates" "slug" => string(45) "buy-cheap-dateless-registration-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "16" ) 3 => array(5) ( "id" => string(2) "17" "link" => string(20) "Prefix Number Plates" "slug" => string(24) "prefix-car-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "18" ) 4 => array(5) ( "id" => string(2) "18" "link" => string(20) "Suffix Number Plates" "slug" => string(28) "buy-suffix-car-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "19" ) 5 => array(5) ( "id" => string(2) "19" "link" => string(37) "Northern Ireland Registration Numbers" "slug" => string(20) "NI-car-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "20" ) 6 => array(5) ( "id" => string(2) "41" "link" => string(18) "Name Number Plates" "slug" => string(18) "name-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "43" ) 7 => array(5) ( "id" => string(2) "43" "link" => string(27) "Transferring a Number Plate" "slug" => string(27) "Transferring-a-number-plate" "permanent" => string(1) "0" "page_id" => string(2) "45" ) 8 => array(5) ( "id" => string(2) "44" "link" => string(18) "DVLA Number Plates" "slug" => string(18) "dvla-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "46" ) 9 => array(5) ( "id" => string(2) "49" "link" => string(23) "Cherished Number Plates" "slug" => string(23) "cherished-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "53" ) ) "services-for-sellers" => array(2) ( 1 => array(5) ( "id" => string(2) "21" "link" => string(20) "Sell My Number Plate" "slug" => string(20) "sell-my-number-plate" "permanent" => string(1) "0" "page_id" => string(2) "22" ) 4 => array(5) ( "id" => string(2) "24" "link" => string(26) "Selling Terms & Conditions" "slug" => string(24) "selling-terms-conditions" "permanent" => string(1) "0" "page_id" => string(2) "25" ) ) "other-information" => array(9) ( 1 => array(5) ( "id" => string(2) "47" "link" => string(38) "Our Premium Personalised Number Plates" "slug" => string(38) "our-premium-personalised-number-plates" "permanent" => string(1) "0" "page_id" => string(2) "51" ) 2 => array(5) ( "id" => string(2) "35" "link" => string(24) "Number Plate Dictionary " "slug" => string(23) "number-plate-dictionary" "permanent" => string(1) "0" "page_id" => string(2) "37" ) 3 => array(5) ( "id" => string(2) "31" "link" => string(25) "Number Plate Rules & Regs" "slug" => string(18) "number-plate-rules" "permanent" => string(1) "0" "page_id" => string(2) "32" ) 4 => array(5) ( "id" => string(2) "29" "link" => string(21) "Post Purchase Options" "slug" => string(21) "post-purchase-options" "permanent" => string(1) "0" "page_id" => string(2) "30" ) 5 => array(5) ( "id" => string(2) "28" "link" => string(21) "Personalised Products" "slug" => string(21) "personalised-products" "permanent" => string(1) "0" "page_id" => string(2) "29" ) 6 => array(5) ( "id" => string(2) "34" "link" => string(11) "Our Friends" "slug" => string(11) "our-friends" "permanent" => string(1) "0" "page_id" => string(2) "36" ) 7 => array(5) ( "id" => string(2) "26" "link" => string(10) "DVLA Forms" "slug" => string(10) "dvla-forms" "permanent" => string(1) "0" "page_id" => string(2) "27" ) 8 => array(5) ( "id" => string(2) "48" "link" => string(25) "How to fit a number plate" "slug" => string(25) "how-to-fit-a-number-plate" "permanent" => string(1) "0" "page_id" => string(2) "52" ) 9 => array(5) ( "id" => string(2) "37" "link" => string(7) "Sitemap" "slug" => string(7) "sitemap" "permanent" => string(1) "0" "page_id" => string(2) "39" ) ) "footer" => array(8) ( 1 => array(5) ( "id" => string(1) "4" "link" => string(4) "Home" "slug" => string(4) "home" "permanent" => string(1) "1" "page_id" => NULL ) 2 => array(5) ( "id" => string(1) "3" "link" => string(19) "Find a Number Plate" "slug" => string(12) "find-a-plate" "permanent" => string(1) "0" "page_id" => string(1) "6" ) 3 => array(5) ( "id" => string(2) "21" "link" => string(20) "Sell My Number Plate" "slug" => string(20) "sell-my-number-plate" "permanent" => string(1) "0" "page_id" => string(2) "22" ) 4 => array(5) ( "id" => string(2) "12" "link" => string(11) "Help & FAQs" "slug" => string(9) "help-faqs" "permanent" => string(1) "0" "page_id" => string(2) "13" ) 5 => array(5) ( "id" => string(1) "1" "link" => string(4) "News" "slug" => string(7) "article" "permanent" => string(1) "1" "page_id" => NULL ) 6 => array(5) ( "id" => string(1) "5" "link" => string(17) "Why choose Primo?" "slug" => string(16) "why-choose-primo" "permanent" => string(1) "0" "page_id" => string(1) "5" ) 7 => array(5) ( "id" => string(2) "30" "link" => string(17) "Privacy & Cookies" "slug" => string(15) "privacy-cookies" "permanent" => string(1) "0" "page_id" => string(2) "31" ) 8 => array(5) ( "id" => string(1) "7" "link" => string(10) "Contact Us" "slug" => string(10) "contact-us" "permanent" => string(1) "0" "page_id" => string(1) "8" ) ) ) "base_url" => string(37) "https://www.primoregistrations.co.uk/" "blocks" => array(4) ( "footer-text" => string(1470) "<p>Important Note: PrimoRegistrations sell registrations owned by ourselves, our clients, and unissued government stock. All reg …" "gift-ideas" => string(558) "<p>There are a number of additional products and services that you may wish to consider when you purchase {number_plate}. Please …" "contact-form" => string(167) "<p>Thanks - we've received your contact form submission and someone will be in contact with you shortly.</p> <p>We aim to respo …" "inspiration" => string(209) "<p>Please find below some of our registrations to give you some great ideas for some funny or unique registrations... …" ) "no_index" => bool FALSE "basket_total" => integer 0 "canonical" => string(0) "" "slideshow_images" => object Database_MySQLi_Result(7)
public auto_render => bool TRUE public request => object Request(19){ protected _internal_row => integer 0 protected _query => string(213) "SELECT `image`.`id` AS `id`, `image`.`image` AS `image`, `image`.`registration` AS `registration`, `image`.`created` AS `created …" protected _result => object mysqli_result(5)
"title" => string(0) "" "accepted_cookies" => NULL "meta_description" => string(141) "We buy and sell personalised number plates owned by clients, unissued personalised registrations, and our own stock of private n …" "meta_keywords" => string(208) "buy a private number plate, buy a private car number plate, buy my private number plate, search private number plate, sell a pri …" ) }{ public current_field => NULL public field_count => NULL public lengths => NULL public num_rows => NULL public type => NULL }
protected _total_rows => integer 5 protected _current_row => integer 0 protected _as_object => string(11) "Model_Image" protected _object_params => NULL }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(13) "plate/<plate>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "plate" "action" => string(9) "breakdown" ) protected _route_regex => string(35) "#^plate/(?P<plate>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Plate" protected _action => string(9) "breakdown" protected _uri => string(13) "plate/W333TOM" protected _external => bool FALSE protected _params => array(1) ( "plate" => string(7) "W333TOM" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public session => object Session_Cookie(5){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/2.0" }{ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
public settings => array(19) ( "standard_plate_price" => string(5) "17.99" "transfer_price" => string(5) "19.99" "day_transfer_price" => string(5) "19.99" "eve_transfer_price" => string(5) "59.99" "vat_rate" => string(4) "1.20" "paypal_percentage" => string(5) "1.000" "debit_percentage" => string(5) "1.000" "credit_percentage" => string(5) "1.000" "bank_transfer_percentage" => string(5) "1.000" "telephone_percentage" => string(5) "1.000" "paypal_email" => string(29) "info@primoregistrations.co.uk" "offer_email" => string(31) "offers@primoregistrations.co.uk" "contact_email" => string(34) "enquiries@primoregistrations.co.uk" "valuation_email" => string(35) "valuations@primoregistrations.co.uk" "wanted_email" => string(29) "info@primoregistrations.co.uk" "enquiry_email" => string(34) "enquiries@primoregistrations.co.uk" "order_email" => string(31) "orders@primoregistrations.co.uk" "rotate_required" => string(1) "1" "scheduled_csv" => string(0) "" ) }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request( arguments )
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(13) "plate/<plate>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "plate" "action" => string(9) "breakdown" ) protected _route_regex => string(35) "#^plate/(?P<plate>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Plate" protected _action => string(9) "breakdown" protected _uri => string(13) "plate/W333TOM" protected _external => bool FALSE protected _params => array(1) ( "plate" => string(7) "W333TOM" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/2.0" }109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute( arguments )
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(13) "plate/<plate>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "plate" "action" => string(9) "breakdown" ) protected _route_regex => string(35) "#^plate/(?P<plate>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Plate" protected _action => string(9) "breakdown" protected _uri => string(13) "plate/W333TOM" protected _external => bool FALSE protected _params => array(1) ( "plate" => string(7) "W333TOM" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 121 ] » Kohana_Request->execute( )
116 */ 117 118 // echo 1; 119 // die(); 120 $request = Request::factory() 121 ->execute(); 122 123 echo $request 124 ->send_headers() 125 ->body();