SYSPATH/classes/Kohana/Request/Client/Curl.php [ 105 ]
100 // Close the connection
101 curl_close($curl);
102
103 if (isset($error))
104 {
105 throw new Request_Exception('Error fetching remote :url [ status :code ] :error',
106 array(':url' => $request->url(), ':code' => $code, ':error' => $error));
107 }
108
109 $response->status($code)
110 ->body($body);
-
SYSPATH/classes/Kohana/Request/Client/External.php [ 140 ] » Kohana_Request_Client_Curl->_send_message(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(63) "http://acuweather.googiie.ru/data/lo/9781/evening-forecast.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(72) "#^http://acuweather\.googiie\.ru/data/lo/9781/evening-forecast\.json$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(2){ public content-length => string(1) "0" public user-agent => string(33) "Kohana Framework 3.3.6 (pharrell)" }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(63) "http://acuweather.googiie.ru/data/lo/9781/evening-forecast.json" protected _external => bool TRUE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Curl(9){ protected _options => array(2) ( 19913 => bool TRUE 42 => bool FALSE ) 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/1.1" }135 $request->headers('user-agent', Kohana::version()); 136 } 137 138 try 139 { 140 $response = $this->_send_message($request, $response); 141 } 142 catch (Exception $e) 143 { 144 // Restore the previous request 145 Request::$current = $previous;
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_External->execute_request(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(63) "http://acuweather.googiie.ru/data/lo/9781/evening-forecast.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(72) "#^http://acuweather\.googiie\.ru/data/lo/9781/evening-forecast\.json$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(2){ public content-length => string(1) "0" public user-agent => string(33) "Kohana Framework 3.3.6 (pharrell)" }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(63) "http://acuweather.googiie.ru/data/lo/9781/evening-forecast.json" protected _external => bool TRUE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Curl(9){ protected _options => array(2) ( 19913 => bool TRUE 42 => bool FALSE ) 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/1.1" }109 $orig_response = $response = Response::factory(array('_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 [ 993 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(63) "http://acuweather.googiie.ru/data/lo/9781/evening-forecast.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(72) "#^http://acuweather\.googiie\.ru/data/lo/9781/evening-forecast\.json$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(2){ public content-length => string(1) "0" public user-agent => string(33) "Kohana Framework 3.3.6 (pharrell)" }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(63) "http://acuweather.googiie.ru/data/lo/9781/evening-forecast.json" protected _external => bool TRUE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Curl(9){ protected _options => array(2) ( 19913 => bool TRUE 42 => bool FALSE ) 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) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
MODPATH/weat1/classes/Weather.php [ 145 ] » Kohana_Request->execute()
140 } 141 142 public function _getDayPartForecast(WLocation $location,$part){ 143 if(!isset($this->_queries[$part. 'Forecast'][$location->id()])) { 144 // $data = json_decode(Request::factory("http://acuweather.googiie.ru/tmp_part_of_day.php?part=$part&id={$location->id()}&loc=".strtolower($location->name()))->execute()->body()); 145 $data = json_decode(Request::factory('http://acuweather.googiie.ru/data/'.implode('/',[$location->region()->id(),$location->id(),$part.'-forecast.json']))->execute()->body()); 146 $forecast = new Forecast(); 147 $forecast->stats = new Forecast_Stats(); 148 $forecast->date = date('Y-m-d'); 149 $forecast->temp = new Forecast_Temp($data->forecast->temp); 150 $forecast->icon = new Forecast_Param_Int('icon',$data->forecast->icon);
-
MODPATH/weat1/classes/WLocation.php [ 101 ] » Weather->_getDayPartForecast(arguments)
0
object WLocation(4)
{ private _id => string(4) "9781" private _name => string(11) "Dzyunashogh" private _region => object Region(4)
{ private _id => string(2) "lo" private _name => string(4) "Lori" private _locations => array(97) ( 0 => object WLocation(4)
private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }{ private _id => string(5) "12307" private _name => string(6) "Agarak" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
1 => object WLocation(4){ private _id => string(6) "808220" private _name => string(4) "Agvi" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
2 => object WLocation(4){ private _id => string(6) "808217" private _name => string(8) "Ahnidzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
3 => object WLocation(4){ private _id => string(4) "9760" private _name => string(7) "Akhtala" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
4 => object WLocation(4){ private _id => string(6) "808209" private _name => string(5) "Akner" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
5 => object WLocation(4){ private _id => string(4) "9761" private _name => string(5) "Akori" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
6 => object WLocation(4){ private _id => string(4) "9758" private _name => string(8) "Alaverdi" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
7 => object WLocation(4){ private _id => string(6) "808202" private _name => string(6) "Amodzh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
8 => object WLocation(4){ private _id => string(4) "9762" private _name => string(8) "Amrakits" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
9 => object WLocation(4){ private _id => string(6) "808200" private _name => string(8) "Ankadzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
10 => object WLocation(4){ private _id => string(4) "9763" private _name => string(10) "Antarramut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
11 => object WLocation(4){ private _id => string(4) "9764" private _name => string(6) "Apaven" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
12 => object WLocation(4){ private _id => string(4) "9765" private _name => string(5) "Ardvi" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
13 => object WLocation(4){ private _id => string(4) "9766" private _name => string(10) "Arevashogh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
14 => object WLocation(4){ private _id => string(4) "9767" private _name => string(9) "Arevatsag" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
15 => object WLocation(4){ private _id => string(4) "9768" private _name => string(5) "Arjut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
16 => object WLocation(4){ private _id => string(4) "9769" private _name => string(7) "Armanis" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
17 => object WLocation(4){ private _id => string(4) "9770" private _name => string(6) "Artsni" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
18 => object WLocation(4){ private _id => string(5) "12301" private _name => string(4) "Atan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
19 => object WLocation(4){ private _id => string(4) "9771" private _name => string(7) "Aygehat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
20 => object WLocation(4){ private _id => string(4) "9772" private _name => string(9) "Aznvadzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
21 => object WLocation(4){ private _id => string(4) "9773" private _name => string(5) "Bazum" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
22 => object WLocation(4){ private _id => string(7) "1633101" private _name => string(6) "Bendik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
23 => object WLocation(4){ private _id => string(4) "9774" private _name => string(12) "Blagodarnoye" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
24 => object WLocation(4){ private _id => string(5) "12300" private _name => string(8) "Bronshoj" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
25 => object WLocation(4){ private _id => string(6) "808113" private _name => string(8) "Ch'kalov" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
26 => object WLocation(4){ private _id => string(4) "9775" private _name => string(8) "Chochkan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
27 => object WLocation(4){ private _id => string(7) "1632989" private _name => string(8) "Darakend" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
28 => object WLocation(4){ private _id => string(4) "9776" private _name => string(6) "Darpas" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
29 => object WLocation(4){ private _id => string(4) "9777" private _name => string(9) "Dashtadem" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
30 => object WLocation(4){ private _id => string(4) "9778" private _name => string(5) "Debed" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
31 => object WLocation(4){ private _id => string(4) "9757" private _name => string(5) "Dsegh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
32 => object WLocation(4){ private _id => string(5) "12302" private _name => string(8) "Dzoraget" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
33 => object WLocation(4){ private _id => string(4) "9779" private _name => string(10) "Dzoragyugh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
34 => object WLocation(4){ private _id => string(4) "9780" private _name => string(8) "Dzoramut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
35 => object WLocation(4) { *RECURSION* } 36 => object WLocation(4){ private _id => string(4) "9782" private _name => string(9) "Fioletovo" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
37 => object WLocation(4){ private _id => string(4) "9783" private _name => string(8) "Garrgarr" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
38 => object WLocation(4){ private _id => string(6) "808055" private _name => string(9) "Gezaldara" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
39 => object WLocation(4){ private _id => string(6) "807945" private _name => string(8) "Ghursali" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
40 => object WLocation(4){ private _id => string(4) "9784" private _name => string(7) "Gogaran" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
41 => object WLocation(4){ private _id => string(4) "9785" private _name => string(6) "Gugark" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
42 => object WLocation(4){ private _id => string(5) "12303" private _name => string(10) "Gyulagarak" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
43 => object WLocation(4){ private _id => string(4) "9786" private _name => string(7) "Haghpat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
44 => object WLocation(4){ private _id => string(4) "9787" private _name => string(10) "Hartagyugh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
45 => object WLocation(4){ private _id => string(5) "12304" private _name => string(7) "Ilmazlu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
46 => object WLocation(4){ private _id => string(4) "9788" private _name => string(7) "Jrashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
47 => object WLocation(4){ private _id => string(6) "808019" private _name => string(10) "Kachachkut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
48 => object WLocation(4){ private _id => string(7) "1632987" private _name => string(6) "Kamzak" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
49 => object WLocation(4){ private _id => string(6) "808005" private _name => string(8) "Karaberd" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
50 => object WLocation(4){ private _id => string(6) "808004" private _name => string(8) "Karadzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
51 => object WLocation(4){ private _id => string(6) "808000" private _name => string(8) "Karakala" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
52 => object WLocation(4){ private _id => string(4) "9789" private _name => string(11) "Katnaghbyur" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
53 => object WLocation(4){ private _id => string(4) "9790" private _name => string(8) "Katnajur" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
54 => object WLocation(4){ private _id => string(4) "9791" private _name => string(9) "Katnarrat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
55 => object WLocation(4){ private _id => string(4) "9792" private _name => string(8) "Khnkoyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
56 => object WLocation(4){ private _id => string(4) "9793" private _name => string(6) "Koghes" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
57 => object WLocation(4){ private _id => string(4) "9794" private _name => string(6) "Kurtan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
58 => object WLocation(4){ private _id => string(4) "9795" private _name => string(5) "Lejan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
59 => object WLocation(4){ private _id => string(4) "9796" private _name => string(10) "Lermontovo" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
60 => object WLocation(4){ private _id => string(4) "9797" private _name => string(8) "Lernavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
61 => object WLocation(4){ private _id => string(4) "9755" private _name => string(10) "Lerrnantsk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
62 => object WLocation(4){ private _id => string(4) "9798" private _name => string(9) "Lerrnapat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
63 => object WLocation(4){ private _id => string(4) "9799" private _name => string(10) "Lerrnhovit" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
64 => object WLocation(4){ private _id => string(4) "9800" private _name => string(5) "Lorut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
65 => object WLocation(4){ private _id => string(4) "9801" private _name => string(10) "Lusaghbyur" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
66 => object WLocation(4){ private _id => string(5) "12271" private _name => string(5) "Marts" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
67 => object WLocation(4){ private _id => string(5) "12272" private _name => string(7) "Medovka" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
68 => object WLocation(4){ private _id => string(5) "12273" private _name => string(10) "Mets Ayrum" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
69 => object WLocation(4){ private _id => string(5) "12274" private _name => string(10) "Mets Parni" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
70 => object WLocation(4){ private _id => string(5) "12275" private _name => string(8) "Metsavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
71 => object WLocation(4){ private _id => string(5) "12276" private _name => string(5) "Mgart" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
72 => object WLocation(4){ private _id => string(5) "12277" private _name => string(11) "Mikhaylovka" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
73 => object WLocation(4){ private _id => string(5) "12278" private _name => string(8) "Norashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
74 => object WLocation(4){ private _id => string(5) "12279" private _name => string(5) "Odzun" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
75 => object WLocation(4){ private _id => string(5) "12280" private _name => string(7) "Opartsi" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
76 => object WLocation(4){ private _id => string(5) "12281" private _name => string(6) "Pambak" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
77 => object WLocation(4){ private _id => string(5) "12282" private _name => string(10) "Privolnoye" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
78 => object WLocation(4){ private _id => string(5) "12283" private _name => string(8) "Pushkino" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
79 => object WLocation(4){ private _id => string(5) "12284" private _name => string(8) "Sarahart" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
80 => object WLocation(4){ private _id => string(5) "12285" private _name => string(5) "Saral" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
81 => object WLocation(4){ private _id => string(5) "12286" private _name => string(9) "Saratovka" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
82 => object WLocation(4){ private _id => string(5) "12287" private _name => string(9) "Shahumyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
83 => object WLocation(4){ private _id => string(5) "12288" private _name => string(8) "Shamlugh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
84 => object WLocation(4){ private _id => string(5) "12289" private _name => string(10) "Shirakamut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
85 => object WLocation(4){ private _id => string(5) "12290" private _name => string(6) "Shnogh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
86 => object WLocation(4){ private _id => string(4) "9756" private _name => string(6) "Spitak" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
87 => object WLocation(4){ private _id => string(5) "12291" private _name => string(10) "Stepanavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
88 => object WLocation(4){ private _id => string(5) "12292" private _name => string(8) "Sverdlov" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
89 => object WLocation(4){ private _id => string(5) "12293" private _name => string(6) "Tashir" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
90 => object WLocation(4){ private _id => string(5) "12294" private _name => string(10) "Tsaghkaber" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
91 => object WLocation(4){ private _id => string(5) "12295" private _name => string(6) "Tsater" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
92 => object WLocation(4){ private _id => string(5) "12296" private _name => string(8) "Tumanyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
93 => object WLocation(4){ private _id => string(5) "12297" private _name => string(6) "Urasar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
94 => object WLocation(4){ private _id => string(5) "12298" private _name => string(5) "Urrut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
95 => object WLocation(4){ private _id => string(5) "12299" private _name => string(7) "Vahagni" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
96 => object WLocation(4){ private _id => string(5) "12308" private _name => string(8) "Vanadzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
) private _queries => array(1) ( "location" => object WLocation(4) { *RECURSION* } ) }1
string(7) "evening"
96 return $this->_forecasts['afternoon']; 97 } 98 99 public function getEveningForecast(){ 100 if(!isset($this->_forecasts['evening'])){ 101 $this->_forecasts['evening'] = Weather::instance()->_getDayPartForecast($this,'evening'); 102 } 103 104 return $this->_forecasts['evening']; 105 } 106
-
APPPATH/classes/Controller/Main.php [ 322 ] » WLocation->getEveningForecast()
317 } 318 $location = $region->location($locationName); 319 if(!$location){ 320 throw new HTTP_Exception_404(); 321 } 322 $forecast = $location->getEveningForecast(); 323 $this->_page->title = __('Погода в :param1 сегодня вечером',[':param1' => $location->name()]); 324 $this->template->content = View::factory('day-part',[ 325 'timestamp' => time(), 326 'region' => $region, 327 'location' => $location,
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Main->action_evening()
79 array(':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 [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Main(5)
{ protected _page => object stdClass(4)
{ public title => string(84) "Եղանակը Հայաստանում 2024, եղանակը մոտակա օրերին" public description => string(151) "exanak.am սերվիսը ներկայացնում է Հայաստանի և իր բնակավայրերի եղանակի իրական տվյալները" public favicon => string(29) "/media/images/favicons/01.ico" public snapshotUrl => string(0) "" }
public template => object View(2){ protected _file => string(44) "/var/www/html/application/views/template.php" protected _data => array(0) }
public auto_render => bool TRUE public request => object Request(19){ 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 _filters => array(0) protected _uri => string(54) "(<lang>/)<action>-weather-forecast/<region>/<location>" protected _regex => array(4) ( "action" => string(58) "current|morning|afternoon|evening|overnight|today|tomorrow" "location" => string(6) "[a-z]+" "region" => string(6) "[a-z]+" "lang" => string(5) "en|ru" ) protected _defaults => array(4) ( "action" => string(7) "current" "host" => bool FALSE "lang" => string(2) "hy" "controller" => string(4) "main" ) protected _route_regex => string(154) "#^(?:(?P<lang>en|ru)/)?(?P<action>current|morning|afternoon|evening|overnight|today|tomorrow)-weather-forecast/(?P<region>[a-z]+ …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Main" protected _action => string(7) "evening" protected _uri => string(41) "evening-weather-forecast/lori/dzyunashogh" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(2) "hy" "region" => string(4) "lori" "location" => string(11) "dzyunashogh" "host" => bool FALSE ) 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(5)
}{ public x-powered-by => string(7) "ASP.NET" public x-aspnet-versionr => string(9) "2.0.50727" public x-aspnetmvc-version => string(3) "1.0" public developedin => string(13) "WebShark.TEAM" public x-frame-options => string(4) "DENY" }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 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/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(54) "(<lang>/)<action>-weather-forecast/<region>/<location>" protected _regex => array(4) ( "action" => string(58) "current|morning|afternoon|evening|overnight|today|tomorrow" "location" => string(6) "[a-z]+" "region" => string(6) "[a-z]+" "lang" => string(5) "en|ru" ) protected _defaults => array(4) ( "action" => string(7) "current" "host" => bool FALSE "lang" => string(2) "hy" "controller" => string(4) "main" ) protected _route_regex => string(154) "#^(?:(?P<lang>en|ru)/)?(?P<action>current|morning|afternoon|evening|overnight|today|tomorrow)-weather-forecast/(?P<region>[a-z]+ …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Main" protected _action => string(7) "evening" protected _uri => string(41) "evening-weather-forecast/lori/dzyunashogh" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(2) "hy" "region" => string(4) "lori" "location" => string(11) "dzyunashogh" "host" => bool FALSE ) 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(5)
{ public x-powered-by => string(7) "ASP.NET" public x-aspnet-versionr => string(9) "2.0.50727" public x-aspnetmvc-version => string(3) "1.0" public developedin => string(13) "WebShark.TEAM" public x-frame-options => string(4) "DENY" }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_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 [ 993 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ 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 _filters => array(0) protected _uri => string(54) "(<lang>/)<action>-weather-forecast/<region>/<location>" protected _regex => array(4) ( "action" => string(58) "current|morning|afternoon|evening|overnight|today|tomorrow" "location" => string(6) "[a-z]+" "region" => string(6) "[a-z]+" "lang" => string(5) "en|ru" ) protected _defaults => array(4) ( "action" => string(7) "current" "host" => bool FALSE "lang" => string(2) "hy" "controller" => string(4) "main" ) protected _route_regex => string(154) "#^(?:(?P<lang>en|ru)/)?(?P<action>current|morning|afternoon|evening|overnight|today|tomorrow)-weather-forecast/(?P<region>[a-z]+ …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Main" protected _action => string(7) "evening" protected _uri => string(41) "evening-weather-forecast/lori/dzyunashogh" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(2) "hy" "region" => string(4) "lori" "location" => string(11) "dzyunashogh" "host" => bool FALSE ) 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) }
}988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 989 ':uri' => $this->_uri, 990 )); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }