MODPATH\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(mysql_errno(), '[:code] :error', array(
68 ':code' => mysql_errno(),
69 ':error' => mysql_error(),
70 ));
71 }
72
-
MODPATH\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);
-
MODPATH\database\classes\kohana\database\mysql.php [ 348 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(34) "SHOW FULL COLUMNS FROM `destaques`"
2
bool FALSE
343 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 344 } 345 else 346 { 347 // Find all column names 348 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 349 } 350 351 $count = 0; 352 $columns = array(); 353 foreach ($result as $row)
-
MODPATH\orm\classes\kohana\orm.php [ 1551 ] » Kohana_Database_MySQL->list_columns(arguments)
0
string(9) "destaques"
1546 * @return array 1547 */ 1548 public function list_columns() 1549 { 1550 // Proxy to database 1551 return $this->_db->list_columns($this->_table_name); 1552 } 1553 1554 /** 1555 * Proxy method to Database field_data. 1556 *
-
MODPATH\orm\classes\kohana\orm.php [ 439 ] » Kohana_ORM->list_columns(arguments)
0
bool TRUE
434 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 435 } 436 else 437 { 438 // Grab column information from database 439 $this->_table_columns = $this->list_columns(TRUE); 440 441 // Load column cache 442 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 443 } 444 }
-
MODPATH\orm\classes\kohana\orm.php [ 386 ] » Kohana_ORM->reload_columns()
381 382 $this->_has_many[$alias] = array_merge($defaults, $details); 383 } 384 385 // Load column information 386 $this->reload_columns(); 387 388 // Clear initial model state 389 $this->clear(); 390 } 391
-
MODPATH\orm\classes\kohana\orm.php [ 300 ] » Kohana_ORM->_initialize()
295 * @param mixed $id Parameter for find or object to load 296 * @return void 297 */ 298 public function __construct($id = NULL) 299 { 300 $this->_initialize(); 301 302 if ($id !== NULL) 303 { 304 if (is_array($id)) 305 {
-
MODPATH\orm\classes\kohana\orm.php [ 109 ] » Kohana_ORM->__construct(arguments)
0
NULL
104 public static function factory($model, $id = NULL) 105 { 106 // Set class name 107 $model = 'Model_'.ucfirst($model); 108 109 return new $model($id); 110 } 111 112 /** 113 * "Has one" relationships 114 * @var array
-
APPPATH\classes\destaque.php [ 6 ] » Kohana_ORM::factory(arguments)
0
string(8) "destaque"
1 <?php defined('SYSPATH') or die('No direct script access.'); 2 3 class Destaque { 4 5 public static function destaquesHome($qtde = NULL) { 6 $orm = ORM::factory('destaque') 7 ->where('status','=',TRUE) 8 ->where('home','=',TRUE) 9 ->order_by('id','DESC'); 10 if($qtde) { 11 $orm->limit($qtde);
-
APPPATH\views\home\index.php [ 6 ] » Destaque::destaquesHome()
1 <div id="container"> 2 <div class="destaque"> 3 <div class="slider-wrapper theme-default" style="width:316px; height:180px; float:left;margin:147px 0 0 23px;"> 4 <div class="ribbon"></div> 5 <div id="slider" class="nivoSlider"> 6 <?php foreach(Destaque::destaquesHome() as $row ) : ?> 7 <a href="<?php echo Destaque::urlPagina($row); ?>"> 8 <img src="<?php echo $row->getImagemThumb(); ?>" width="316" height="207" title="<?php echo $row->titulo; ?>" /> 9 </a> 10 <?php endforeach; ?> 11 </div>
-
SYSPATH\classes\kohana\view.php [ 61 ] » include(arguments)
0
string(60) "E:\home\entretereventos\web\application\views\home\index.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH\classes\kohana\view.php [ 343 ] » Kohana_View::capture(arguments)
0
string(60) "E:\home\entretereventos\web\application\views\home/index.php"
1
array(0)
338 { 339 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 340 } 341 342 // Combine local and global data and capture the output 343 return View::capture($this->_file, $this->_data); 344 } 345 346 } // End View
-
SYSPATH\classes\kohana\view.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 // Display the exception message 233 Kohana_Exception::handler($e);
-
APPPATH\views\template\home.php [ 181 ] » Kohana_View->__toString()
176 </div> 177 </div> 178 </div><!-- topo --> 179 180 <div class="conteudo"> 181 <?php echo $content; ?> 182 </div> 183 184 <div id="rodape"> 185 <div class="container"> 186 <div class="copyright">
-
SYSPATH\classes\kohana\view.php [ 61 ] » include(arguments)
0
string(63) "E:\home\entretereventos\web\application\views\template\home.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH\classes\kohana\view.php [ 343 ] » Kohana_View::capture(arguments)
0
string(63) "E:\home\entretereventos\web\application\views\template/home.php"
1
array(0)
338 { 339 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 340 } 341 342 // Combine local and global data and capture the output 343 return View::capture($this->_file, $this->_data); 344 } 345 346 } // End View
-
SYSPATH\classes\kohana\controller\template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 return parent::after(); 48 } 49
-
{PHP internal call} » Kohana_Controller_Template->after()
-
SYSPATH\classes\kohana\request\client\internal.php [ 135 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Home(6)
{ public module => string(4) "home" public template => object View(2)
{ protected _file => string(63) "E:\home\entretereventos\web\application\views\template/home.php" protected _data => array(0) }
public content => object View(2){ protected _file => string(60) "E:\home\entretereventos\web\application\views\home/index.php" protected _data => array(0) }
public auto_render => bool TRUE public request => object Request(20){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(4) "http" protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "home" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1575922900 }
public _injected_routes => array(0) }{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }130 * will be removed in 3.2. 131 */ 132 $method->invokeArgs($controller, $params); 133 134 // Execute the "after action" method 135 $class->getMethod('after')->invoke($controller); 136 137 // Stop response time 138 $this->_response_time = (time() - $this->_response_time); 139 140 // Add the default Content-Type header to initial request if not present
-
SYSPATH\classes\kohana\request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(4) "http" protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "home" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => NULL protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(4) "http" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "home" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(5){ protected _previous_environment => NULL protected _cache => NULL protected _allow_private_cache => bool FALSE protected _request_time => NULL protected _response_time => integer 1575922900 }
public _injected_routes => array(0) }1133 throw new Kohana_Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT\index.php [ 109 ] » Kohana_Request->execute()
104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 echo Request::factory() 109 ->execute() 110 ->send_headers() 111 ->body();