MODPATH/database/classes/kohana/database/mysql.php [ 181 ]
176 {
177 // This benchmark is worthless
178 Profiler::delete($benchmark);
179 }
180
181 throw new Database_Exception(mysql_errno($this->_connection), '[:code] :error ( :query )', array(
182 ':code' => mysql_errno($this->_connection),
183 ':error' => mysql_error($this->_connection),
184 ':query' => $sql,
185 ));
186 }
-
MODPATH/database/classes/kohana/database/query.php [ 225 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(152) "SELECT * FROM `pages` WHERE `lft` > '696' AND `rgt` < '1149' AND (`lvl` > '2' AND `lvl` <= 3) AND (`type` = 'News') ORDER BY `lf …"
2
bool FALSE
3
array(0)
220 return new Database_Result_Cached($result, $sql, $this->_as_object, $this->_object_params); 221 } 222 } 223 224 // Execute the query 225 $result = $db->query($this->_type, $sql, $this->_as_object, $this->_object_params); 226 227 if (isset($cache_key)) 228 { 229 // Cache the result array 230 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/orm/mptt.php [ 105 ] » Kohana_Database_Query->execute()
100 //$page=isset($_GET['page'])?(int)$_GET['page']:1; 101 $result->limit($pagination) 102 ->offset((int)(($page-1)*$pagination)); 103 } 104 //print_r($result); exit; 105 $result=$result->order_by($orderby, $direction)->execute()->as_array(); 106 //возвращаем массив с пагинацией 107 //print_r($count); 108 $pagination_result=array(); 109 if ($pagination!==FALSE){ 110 $pagination_result=array(
-
APPPATH/classes/xml.php [ 327 ] » ORM_MPTT->xchildren_my(arguments)
0
object SimpleXMLElement(1)
{ public 0 => string(4) "3544" }
1
string(3) "ASC"
2
bool FALSE
3
array(1) ( 0 => string(4) "News" )
4
integer 1
5
object SimpleXMLElement(1)
{ public 0 => string(1) "3" }
6
bool FALSE
7
string(3) "lft"
322 323 $results = ORM::factory('page');//->where('active','=','1'); 324 325 //echo $countonpage.'xx'; 326 327 $results =$results->xchildren_my($current,'ASC',$count,$types,$searchdeph,$countonpage,$where,$orderby); 328 329 //print_r($xresults);exit; 330 foreach($results['query'] as $result){ 331 $newdocument=$item[0]->addChild('DOCUMENT'); 332 //strtoupper($str);
-
APPPATH/classes/controller/index.php [ 267 ] » Xml::loadxml(arguments)
0
string(1452) "<?xml version="1.0" encoding="utf-8"?> <PAGE TYPE="Section" IID="3521" COMENT="0" SECTIONID="1" HOST="www.stroiset.ru" PROTO="ht …"
1
string(4) "3521"
2
string(4) "3521"
3
string(3) "484"
4
string(3) "599"
262 } 263 else{ 264 $current_section=$page->parent_id; 265 } 266 // echo $xml; 267 $xml=simplexml_load_string(Xml::loadxml($xml,$current_section,$page->pk(),$page->lft,$page->rgt)); 268 //$xml=$xml->asXML(); 269 if(isset($_GET['FOR']) && $_GET['FOR']=='XML'){ 270 //$xml=simplexml_load_string($xml); 271 $xml=$xml->asXML();/**/ 272 $this->response->headers('Content-Type', 'text/xml');
-
{PHP internal call} » Controller_Index->action_index(arguments)
0
string(9) "news.html"
-
SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Index(2)
{ 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(9) "(<stuff>)" protected _regex => array(1) ( "stuff" => string(4) "(.*)" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(26) "#^(?:(?P<stuff>(.*)))?$#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(5) "index" protected _action => string(5) "index" protected _uri => string(9) "news.html" protected _external => bool FALSE protected _params => array(1) ( "stuff" => string(9) "news.html" ) protected _get => array(1) ( "page" => string(3) "..." ) 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 1711657099 }
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" }1
array(1) ( "stuff" => string(9) "news.html" )
127 * Execute the main action with the parameters 128 * 129 * @deprecated $params passing is deprecated since version 3.1 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
-
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(9) "(<stuff>)" protected _regex => array(1) ( "stuff" => string(4) "(.*)" ) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(26) "#^(?:(?P<stuff>(.*)))?$#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(5) "index" protected _action => string(5) "index" protected _uri => string(9) "news.html" protected _external => bool FALSE protected _params => array(1) ( "stuff" => string(9) "news.html" ) protected _get => array(1) ( "page" => string(3) "..." ) 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 1711657099 }
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();