Zend OPcache [ 67 ]
-
MODPATH/database/classes/kohana/database/mysql.php [ 432 ] » Kohana_Database_MySQL->connect()
427 } 428 429 public function escape($value) 430 { 431 // Make sure the database is connected 432 $this->_connection or $this->connect(); 433 434 if (($value = mysql_real_escape_string( (string) $value, $this->_connection)) === FALSE) 435 { 436 throw new Database_Exception(':error', 437 array(':error' => mysql_error($this->_connection)),
-
MODPATH/database/classes/kohana/database.php [ 473 ] » Kohana_Database_MySQL->escape(arguments)
0
string(3) "267"
468 { 469 // Convert to non-locale aware float to prevent possible commas 470 return sprintf('%F', $value); 471 } 472 473 return $this->escape($value); 474 } 475 476 /** 477 * Quote a database column name and add the table prefix if needed. 478 *
-
MODPATH/database/classes/kohana/database/query/builder.php [ 116 ] » Kohana_Database->quote(arguments)
0
string(3) "267"
111 $value = $min.' AND '.$max; 112 } 113 elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) 114 { 115 // Quote the value, it is not a parameter 116 $value = $db->quote($value); 117 } 118 119 if ($column) 120 { 121 if (is_array($column))
-
MODPATH/database/classes/kohana/database/query/builder/select.php [ 370 ] » Kohana_Database_Query_Builder->_compile_conditions(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(23) "mysql.pluralmack.com.br" "database" => string(10) "pluralmack" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
1
array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(8) "posts.ID" 1 => string(1) "=" 2 => string(3) "267" ) ) )
365 } 366 367 if ( ! empty($this->_where)) 368 { 369 // Add selection conditions 370 $query .= ' WHERE '.$this->_compile_conditions($db, $this->_where); 371 } 372 373 if ( ! empty($this->_group_by)) 374 { 375 // Add grouping
-
MODPATH/database/classes/kohana/database/query.php [ 228 ] » Kohana_Database_Query_Builder_Select->compile(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(23) "mysql.pluralmack.com.br" "database" => string(10) "pluralmack" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
223 { 224 $object_params = $this->_object_params; 225 } 226 227 // Compile the SQL query 228 $sql = $this->compile($db); 229 230 if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) 231 { 232 // Set the cache key based on the database instance name and SQL 233 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
APPPATH/classes/wordpress.php [ 191 ] » Kohana_Database_Query->execute()
186 ->join(array(self::$prefix.'_users','author'),'inner')->on('posts.post_author','=','author.ID') 187 ->join(array(self::$prefix.'_term_relationships','category'),'inner')->on('posts.ID','=','category.object_id') 188 189 ->limit(1); 190 191 $result = $query->execute(); 192 193 if ($result) 194 { 195 if ($result->count() > 0) 196 {
-
APPPATH/classes/controller/posts/detail.php [ 59 ] » Wordpress::get_post(arguments)
0
string(3) "267"
54 public function action_eventos() 55 { 56 57 $post_id = $this->request->param('post_id'); 58 59 $post_array = Wordpress::get_post($post_id); //id do post 60 61 $this-> 62 template 63 ->set('page_title', TITLE.PAGE_SEPARATOR.__($post_array['post_title'])) 64 ->set('description', ('Eventos da Pluralmack: '.$post_array['post_title']))
-
{PHP internal call} » Controller_Posts_Detail->action_eventos()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Posts_Detail(4)
{ public template => object View(2)
{ protected _file => string(57) "/home/pluralmack/www/apps/site/application/views/skin.php" protected _data => array(3) ( "top" => object View(2)
public auto_render => bool TRUE public request => object Request(21){ protected _file => string(61) "/home/pluralmack/www/apps/site/application/views/html/top.php" protected _data => array(0) }
"bottom" => object View(2){ protected _file => string(64) "/home/pluralmack/www/apps/site/application/views/html/bottom.php" protected _data => array(0) }
"menu" => object View(2){ protected _file => string(62) "/home/pluralmack/www/apps/site/application/views/html/menu.php" protected _data => array(0) }
) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(30) "posts/<action>/<post_id>/<seo>" protected _regex => array(0) protected _defaults => array(2) ( "directory" => string(5) "posts" "controller" => string(6) "detail" ) protected _route_regex => string(84) "#^posts/(?P<action>[^/.,;?\n]++)/(?P<post_id>[^/.,;?\n]++)/(?P<seo>[^/.,;?\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(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(5) "posts" protected _controller => string(6) "detail" protected _action => string(7) "eventos" protected _uri => string(29) "posts/eventos/267/fispal-2013" protected _external => bool FALSE protected _params => array(2) ( "post_id" => string(3) "267" "seo" => string(11) "fispal-2013" ) protected _get => array(1) ( "/posts/eventos/267/fispal-2013/" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
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(8) "HTTP/1.1" }113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(30) "posts/<action>/<post_id>/<seo>" protected _regex => array(0) protected _defaults => array(2) ( "directory" => string(5) "posts" "controller" => string(6) "detail" ) protected _route_regex => string(84) "#^posts/(?P<action>[^/.,;?\n]++)/(?P<post_id>[^/.,;?\n]++)/(?P<seo>[^/.,;?\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(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(5) "posts" protected _controller => string(6) "detail" protected _action => string(7) "eventos" protected _uri => string(29) "posts/eventos/267/fispal-2013" protected _external => bool FALSE protected _params => array(2) ( "post_id" => string(3) "267" "seo" => string(11) "fispal-2013" ) protected _get => array(1) ( "/posts/eventos/267/fispal-2013/" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
object Request(21)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(30) "posts/<action>/<post_id>/<seo>" protected _regex => array(0) protected _defaults => array(2) ( "directory" => string(5) "posts" "controller" => string(6) "detail" ) protected _route_regex => string(84) "#^posts/(?P<action>[^/.,;?\n]++)/(?P<post_id>[^/.,;?\n]++)/(?P<seo>[^/.,;?\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(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(5) "posts" protected _controller => string(6) "detail" protected _action => string(7) "eventos" protected _uri => string(29) "posts/eventos/267/fispal-2013" protected _external => bool FALSE protected _params => array(2) ( "post_id" => string(3) "267" "seo" => string(11) "fispal-2013" ) protected _get => array(1) ( "/posts/eventos/267/fispal-2013/" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
public _injected_routes => array(0) }1133 throw new 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 [ 108 ] » Kohana_Request->execute()
103 /** 104 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 105 * If no source is specified, the URI will be automatically detected. 106 */ 107 echo Request::factory() 108 ->execute() 109 ->send_headers() 110 ->body(); 111 112 //echo Debug::vars(Session::instance('database')->id(), $GLOBALS);