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(64) "http://acuweather.googiie.ru/data/av/11988/evening-forecast.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(73) "#^http://acuweather\.googiie\.ru/data/av/11988/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(64) "http://acuweather.googiie.ru/data/av/11988/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(64) "http://acuweather.googiie.ru/data/av/11988/evening-forecast.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(73) "#^http://acuweather\.googiie\.ru/data/av/11988/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(64) "http://acuweather.googiie.ru/data/av/11988/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(64) "http://acuweather.googiie.ru/data/av/11988/evening-forecast.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(73) "#^http://acuweather\.googiie\.ru/data/av/11988/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(64) "http://acuweather.googiie.ru/data/av/11988/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(5) "11988" private _name => string(8) "Metsamor" private _region => object Region(4)
{ private _id => string(2) "av" private _name => string(7) "Armavir" private _locations => array(96) ( 0 => object WLocation(4)
private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }{ private _id => string(4) "6978" private _name => string(10) "Aghavnatun" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
1 => object WLocation(4){ private _id => string(4) "6979" private _name => string(8) "Aknalich" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
2 => object WLocation(4){ private _id => string(7) "1895493" private _name => string(8) "Aknashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
3 => object WLocation(4){ private _id => string(4) "6980" private _name => string(7) "Amasiya" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
4 => object WLocation(4){ private _id => string(7) "1895503" private _name => string(6) "Amberd" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
5 => object WLocation(4){ private _id => string(6) "808195" private _name => string(5) "Apaga" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
6 => object WLocation(4){ private _id => string(4) "6981" private _name => string(7) "Aragats" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
7 => object WLocation(4){ private _id => string(4) "6982" private _name => string(5) "Araks" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
8 => object WLocation(4){ private _id => string(4) "6983" private _name => string(6) "Arazap" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
9 => object WLocation(4){ private _id => string(4) "6984" private _name => string(9) "Arevashat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
10 => object WLocation(4){ private _id => string(4) "6985" private _name => string(6) "Arevik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
11 => object WLocation(4){ private _id => string(4) "6986" private _name => string(8) "Argavand" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
12 => object WLocation(4){ private _id => string(4) "6977" private _name => string(7) "Armavir" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
13 => object WLocation(4){ private _id => string(7) "1895480" private _name => string(10) "Arratashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
14 => object WLocation(4){ private _id => string(4) "6987" private _name => string(9) "Arshaluys" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
15 => object WLocation(4){ private _id => string(4) "6988" private _name => string(8) "Artashar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
16 => object WLocation(4){ private _id => string(6) "808177" private _name => string(7) "Artimet" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
17 => object WLocation(4){ private _id => string(7) "1895504" private _name => string(5) "Aygek" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
18 => object WLocation(4){ private _id => string(6) "808163" private _name => string(8) "Aygeshat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
19 => object WLocation(4){ private _id => string(6) "808160" private _name => string(7) "Aykavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
20 => object WLocation(4){ private _id => string(4) "6989" private _name => string(6) "Aytakh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
21 => object WLocation(4){ private _id => string(6) "808156" private _name => string(8) "Azatavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
22 => object WLocation(4){ private _id => string(4) "6990" private _name => string(7) "Bagaran" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
23 => object WLocation(4){ private _id => string(7) "1652987" private _name => string(10) "Baghramyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
24 => object WLocation(4){ private _id => string(4) "6991" private _name => string(11) "Bambakashat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
25 => object WLocation(4){ private _id => string(6) "808130" private _name => string(9) "Berkashat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
26 => object WLocation(4){ private _id => string(7) "1895498" private _name => string(10) "Chobankara" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
27 => object WLocation(4){ private _id => string(4) "6992" private _name => string(7) "Dalarik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
28 => object WLocation(4){ private _id => string(7) "1304298" private _name => string(4) "Dize" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
29 => object WLocation(4){ private _id => string(4) "6993" private _name => string(5) "Dokhs" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
30 => object WLocation(4){ private _id => string(6) "808084" private _name => string(9) "Dzhrashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
31 => object WLocation(4){ private _id => string(5) "12005" private _name => string(9) "Ejmiatsin" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
32 => object WLocation(4){ private _id => string(7) "1895540" private _name => string(5) "Ferik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
33 => object WLocation(4){ private _id => string(6) "808075" private _name => string(10) "Franganots" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
34 => object WLocation(4){ private _id => string(4) "6994" private _name => string(3) "Gay" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
35 => object WLocation(4){ private _id => string(4) "6995" private _name => string(8) "Getashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
36 => object WLocation(4){ private _id => string(6) "808053" private _name => string(7) "Ginevet" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
37 => object WLocation(4){ private _id => string(7) "1895499" private _name => string(10) "Griboyedov" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
38 => object WLocation(4){ private _id => string(4) "6996" private _name => string(6) "Hatsik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
39 => object WLocation(4){ private _id => string(7) "1895494" private _name => string(9) "Haykashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
40 => object WLocation(4){ private _id => string(4) "6975" private _name => string(9) "Hoktember" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
41 => object WLocation(4){ private _id => string(6) "807902" private _name => string(8) "Hovtamej" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
42 => object WLocation(4){ private _id => string(4) "6998" private _name => string(9) "Hushakert" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
43 => object WLocation(4){ private _id => string(6) "808031" private _name => string(19) "Imeni Dzerzhinskogo" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
44 => object WLocation(4){ private _id => string(4) "6999" private _name => string(7) "Janfida" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
45 => object WLocation(4){ private _id => string(4) "7000" private _name => string(7) "Jrarrat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
46 => object WLocation(4){ private _id => string(7) "1297933" private _name => string(10) "Kadikislak" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
47 => object WLocation(4){ private _id => string(6) "808012" private _name => string(8) "Kamyshlu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
48 => object WLocation(4){ private _id => string(6) "808002" private _name => string(8) "Karakala" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
49 => object WLocation(4){ private _id => string(4) "7001" private _name => string(8) "Karakert" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
50 => object WLocation(4){ private _id => string(6) "807988" private _name => string(10) "Kargabazar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
51 => object WLocation(4){ private _id => string(6) "807986" private _name => string(7) "Karkhun" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
52 => object WLocation(4){ private _id => string(6) "807971" private _name => string(7) "Kelanlu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
53 => object WLocation(4){ private _id => string(4) "7002" private _name => string(7) "Khoronk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
54 => object WLocation(4){ private _id => string(6) "807938" private _name => string(9) "Kyurakyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
55 => object WLocation(4){ private _id => string(7) "1652985" private _name => string(7) "Lenughi" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
56 => object WLocation(4){ private _id => string(6) "808167" private _name => string(10) "Lernamerts" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
57 => object WLocation(4){ private _id => string(4) "7003" private _name => string(8) "Lukashin" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
58 => object WLocation(4){ private _id => string(6) "807924" private _name => string(9) "Lusagyugh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
59 => object WLocation(4){ private _id => string(5) "11987" private _name => string(7) "Margara" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
60 => object WLocation(4){ private _id => string(5) "12003" private _name => string(7) "Markara" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
61 => object WLocation(4) { *RECURSION* } 62 => object WLocation(4){ private _id => string(5) "11989" private _name => string(8) "Mrgashat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
63 => object WLocation(4){ private _id => string(5) "11990" private _name => string(8) "Mrgastan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
64 => object WLocation(4){ private _id => string(7) "1290884" private _name => string(9) "Mursitali" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
65 => object WLocation(4){ private _id => string(5) "11991" private _name => string(8) "Musalerr" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
66 => object WLocation(4){ private _id => string(5) "11992" private _name => string(10) "Myasnikyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
67 => object WLocation(4){ private _id => string(5) "12004" private _name => string(10) "Nalbandyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
68 => object WLocation(4){ private _id => string(6) "807886" private _name => string(17) "Nerkin Khatunarkh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
69 => object WLocation(4){ private _id => string(5) "11993" private _name => string(11) "Nor Armavir" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
70 => object WLocation(4){ private _id => string(5) "11994" private _name => string(7) "Parakar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
71 => object WLocation(4){ private _id => string(6) "807846" private _name => string(13) "Pokr Shagriar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
72 => object WLocation(4){ private _id => string(5) "11995" private _name => string(9) "Pshatavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
73 => object WLocation(4){ private _id => string(6) "807844" private _name => string(8) "Ptghunk'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
74 => object WLocation(4){ private _id => string(5) "11996" private _name => string(8) "Samaghar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
75 => object WLocation(4){ private _id => string(5) "11997" private _name => string(8) "Shaumyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
76 => object WLocation(4){ private _id => string(6) "807812" private _name => string(8) "Shavarut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
77 => object WLocation(4){ private _id => string(5) "11998" private _name => string(8) "Shenavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
78 => object WLocation(4){ private _id => string(5) "11999" private _name => string(9) "Sovetakan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
79 => object WLocation(4){ private _id => string(7) "1632612" private _name => string(17) "Sovkhoz Gecherlyu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
80 => object WLocation(4){ private _id => string(5) "12000" private _name => string(7) "Tandzut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
81 => object WLocation(4){ private _id => string(7) "1895479" private _name => string(7) "Taronik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
82 => object WLocation(4){ private _id => string(6) "808228" private _name => string(11) "Tsaghkalanj" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
83 => object WLocation(4){ private _id => string(6) "807759" private _name => string(10) "Tsaghkunk'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
84 => object WLocation(4){ private _id => string(6) "808043" private _name => string(8) "Tsiatsan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
85 => object WLocation(4){ private _id => string(5) "12001" private _name => string(11) "Vardanashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
86 => object WLocation(4){ private _id => string(6) "807725" private _name => string(13) "Verin Kelanlu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
87 => object WLocation(4){ private _id => string(6) "807724" private _name => string(16) "Verin Khatunarkh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
88 => object WLocation(4){ private _id => string(6) "807717" private _name => string(11) "Verin Zeyva" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
89 => object WLocation(4){ private _id => string(7) "1895497" private _name => string(8) "Voskehat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
90 => object WLocation(4){ private _id => string(6) "807697" private _name => string(9) "Yeghegnut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
91 => object WLocation(4){ private _id => string(6) "807693" private _name => string(11) "Yeraskhahun" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
92 => object WLocation(4){ private _id => string(5) "12002" private _name => string(12) "Yervandashat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
93 => object WLocation(4){ private _id => string(7) "1652986" private _name => string(9) "Zart'onk'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
94 => object WLocation(4){ private _id => string(6) "807686" private _name => string(5) "Zeyva" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
95 => object WLocation(4){ private _id => string(6) "808027" private _name => string(7) "Zhdanov" 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/armavir/metsamor" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(2) "hy" "region" => string(7) "armavir" "location" => string(8) "metsamor" "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/armavir/metsamor" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(2) "hy" "region" => string(7) "armavir" "location" => string(8) "metsamor" "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/armavir/metsamor" protected _external => bool FALSE protected _params => array(4) ( "lang" => string(2) "hy" "region" => string(7) "armavir" "location" => string(8) "metsamor" "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 }