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(62) "http://api.accuweather.com/forecasts/v1/daily/90day/11598.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(71) "#^http://api\.accuweather\.com/forecasts/v1/daily/90day/11598\.json$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(3){ public accept-encoding => string(7) "deflate" 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(62) "http://api.accuweather.com/forecasts/v1/daily/90day/11598.json" protected _external => bool TRUE protected _params => array(0) protected _get => array(4) ( "apikey" => string(32) "43dde940b9f742238b90dba2c94c8a3f" "language" => string(2) "en" "details" => string(4) "true" "metric" => string(4) "True" ) 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(17)
{ public content-type => string(31) "application/json; charset=utf-8" public request-context => string(49) "appId=cid-v1:ea11c69b-764f-4610-b1e2-0faa867e8fb2" public ratelimit-limit => string(1) "1" public ratelimit-remaining => string(3) "249" public am => string(4) "true" public access-control-allow-origin => string(1) "*" public access-control-allow-credentials => string(4) "true" public access-control-allow-methods => string(3) "GET" public access-control-allow-headers => string(116) "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization" public access-control-max-age => string(7) "1728000" public vary => string(15) "Accept-Encoding" public cache-control => string(20) "public, max-age=1156" public expires => string(29) "Thu, 28 Mar 2024 13:46:30 GMT" public date => string(29) "Thu, 28 Mar 2024 13:27:14 GMT" public transfer-encoding => string(7) "chunked" public connection => array(2) ( 0 => string(10) "keep-alive" 1 => string(17) "Transfer-Encoding" ) public akamai-grn => string(30) "0.9dd854b8.1711632434.1c632e88" }
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(62) "http://api.accuweather.com/forecasts/v1/daily/90day/11598.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(71) "#^http://api\.accuweather\.com/forecasts/v1/daily/90day/11598\.json$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(3){ public accept-encoding => string(7) "deflate" 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(62) "http://api.accuweather.com/forecasts/v1/daily/90day/11598.json" protected _external => bool TRUE protected _params => array(0) protected _get => array(4) ( "apikey" => string(32) "43dde940b9f742238b90dba2c94c8a3f" "language" => string(2) "en" "details" => string(4) "true" "metric" => string(4) "True" ) 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(17)
{ public content-type => string(31) "application/json; charset=utf-8" public request-context => string(49) "appId=cid-v1:ea11c69b-764f-4610-b1e2-0faa867e8fb2" public ratelimit-limit => string(1) "1" public ratelimit-remaining => string(3) "249" public am => string(4) "true" public access-control-allow-origin => string(1) "*" public access-control-allow-credentials => string(4) "true" public access-control-allow-methods => string(3) "GET" public access-control-allow-headers => string(116) "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization" public access-control-max-age => string(7) "1728000" public vary => string(15) "Accept-Encoding" public cache-control => string(20) "public, max-age=1156" public expires => string(29) "Thu, 28 Mar 2024 13:46:30 GMT" public date => string(29) "Thu, 28 Mar 2024 13:27:14 GMT" public transfer-encoding => string(7) "chunked" public connection => array(2) ( 0 => string(10) "keep-alive" 1 => string(17) "Transfer-Encoding" ) public akamai-grn => string(30) "0.9dd854b8.1711632434.1c632e88" }
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(62) "http://api.accuweather.com/forecasts/v1/daily/90day/11598.json" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(71) "#^http://api\.accuweather\.com/forecasts/v1/daily/90day/11598\.json$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(3){ public accept-encoding => string(7) "deflate" 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(62) "http://api.accuweather.com/forecasts/v1/daily/90day/11598.json" protected _external => bool TRUE protected _params => array(0) protected _get => array(4) ( "apikey" => string(32) "43dde940b9f742238b90dba2c94c8a3f" "language" => string(2) "en" "details" => string(4) "true" "metric" => string(4) "True" ) 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 [ 103 ] » Kohana_Request->execute()
98 $year = date('Y'); 99 } 100 101 if(!isset($this->_queries['monthForecasts'][$year][$month][$location->id()])){ 102 //$data = json_decode(Request::factory('http://acuweather.googiie.ru/cache/weather/'.substr($year,-2).$month.'.json')->execute()->body()); 103 $data = json_decode(Request::factory('http://api.accuweather.com/forecasts/v1/daily/90day/'.$location->id().'.json?apikey=43dde940b9f742238b90dba2c94c8a3f&language='.$this->_lang.'&details=true&metric=True')->headers('Accept-Encoding', 'deflate')->execute()->body(),true); 104 foreach ($data['DailyForecasts'] as $fcData){ 105 $fcMonth = date('m',$fcData['EpochDate']); 106 $fcDay = date('d',$fcData['EpochDate']); 107 $fcYear = date('Y',$fcData['EpochDate']); 108 if($month != $fcMonth) continue;
-
MODPATH/weat1/classes/WLocation.php [ 61 ] » Weather->_getMonthForecast(arguments)
0
object WLocation(4)
{ private _id => string(5) "11598" private _name => string(8) "Brrnakot" private _region => object Region(4)
{ private _id => string(2) "su" private _name => string(6) "Syunik" private _locations => array(90) ( 0 => object WLocation(4)
private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }{ private _id => string(5) "11591" 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(5) "11592" private _name => string(9) "Akhlatyan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
2 => object WLocation(4){ private _id => string(5) "11593" private _name => string(6) "Aldara" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
3 => object WLocation(4){ private _id => string(5) "11594" private _name => string(10) "Angeghakot" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
4 => object WLocation(4){ private _id => string(5) "11596" private _name => string(9) "Artsvanik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
5 => object WLocation(4){ private _id => string(5) "11597" private _name => string(10) "Bardzravan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
6 => object WLocation(4) { *RECURSION* } 7 => object WLocation(4){ private _id => string(5) "11599" private _name => string(6) "Darbas" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
8 => object WLocation(4){ private _id => string(5) "15380" private _name => string(9) "Dastakert" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
9 => object WLocation(4){ private _id => string(5) "11600" private _name => string(9) "Davit Bek" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
10 => object WLocation(4){ private _id => string(5) "11601" private _name => string(6) "Gorayk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
11 => object WLocation(4){ private _id => string(5) "11586" private _name => string(5) "Goris" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
12 => object WLocation(4){ private _id => string(5) "11602" private _name => string(8) "Halidzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
13 => object WLocation(4){ private _id => string(5) "11603" private _name => string(9) "Hartashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
14 => object WLocation(4){ private _id => string(5) "11604" private _name => string(8) "Hatsavan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
15 => object WLocation(4){ private _id => string(5) "11590" private _name => string(9) "Kadzharan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
16 => object WLocation(4){ private _id => string(5) "11589" private _name => string(7) "Kajaran" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
17 => object WLocation(4){ private _id => string(5) "11585" private _name => string(5) "Kapan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
18 => object WLocation(4){ private _id => string(5) "11605" private _name => string(8) "Karashen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
19 => object WLocation(4){ private _id => string(5) "11606" private _name => string(9) "Khnatsakh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
20 => object WLocation(4){ private _id => string(5) "11607" private _name => string(10) "Khndzoresk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
21 => object WLocation(4){ private _id => string(7) "1632583" private _name => string(8) "Khordzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
22 => object WLocation(4){ private _id => string(5) "11608" private _name => string(4) "Khot" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
23 => object WLocation(4){ private _id => string(5) "11609" private _name => string(9) "Khoznavar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
24 => object WLocation(4){ private _id => string(6) "807959" private _name => string(5) "K'irs" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
25 => object WLocation(4){ private _id => string(5) "11610" private _name => string(10) "Korrnidzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
26 => object WLocation(4){ private _id => string(6) "807946" private _name => string(5) "Kuris" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
27 => object WLocation(4){ private _id => string(6) "807937" private _name => string(7) "K'yurut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
28 => object WLocation(4){ private _id => string(5) "11611" private _name => string(6) "Lehvaz" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
29 => object WLocation(4){ private _id => string(5) "11612" private _name => string(10) "Lerrnadzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
30 => object WLocation(4){ private _id => string(5) "11613" private _name => string(5) "Lichk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
31 => object WLocation(4){ private _id => string(5) "11614" private _name => string(3) "Lor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
32 => object WLocation(4){ private _id => string(7) "1632602" private _name => string(5) "Ltsen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
33 => object WLocation(4){ private _id => string(6) "807914" private _name => string(9) "Maralzami" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
34 => object WLocation(4){ private _id => string(5) "15362" private _name => string(6) "Meghri" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
35 => object WLocation(4){ private _id => string(6) "807898" private _name => string(8) "Musallam" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
36 => object WLocation(4){ private _id => string(6) "808142" private _name => string(7) "Muts'k'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
37 => object WLocation(4){ private _id => string(6) "807888" private _name => string(17) "Nerk'in Girat'agh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
38 => object WLocation(4){ private _id => string(6) "807890" private _name => string(17) "Nerk'in Gyodak'lu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
39 => object WLocation(4){ private _id => string(6) "807892" private _name => string(12) "Nerk'in Hand" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
40 => object WLocation(4){ private _id => string(7) "1895824" private _name => string(17) "Nerkin Khndzoresk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
41 => object WLocation(4){ private _id => string(6) "807885" private _name => string(16) "Nerk'in Khotanan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
42 => object WLocation(4){ private _id => string(5) "15363" private _name => string(10) "Norashenik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
43 => object WLocation(4){ private _id => string(5) "15364" private _name => string(7) "Noravan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
44 => object WLocation(4){ private _id => string(7) "1632586" private _name => string(6) "Novoye" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
45 => object WLocation(4){ private _id => string(6) "807862" private _name => string(6) "Okhtar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
46 => object WLocation(4){ private _id => string(6) "807853" private _name => string(8) "P'ayahan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
47 => object WLocation(4){ private _id => string(6) "807850" private _name => string(6) "P'irlu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
48 => object WLocation(4){ private _id => string(6) "807843" private _name => string(6) "Pkhrut" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
49 => object WLocation(4){ private _id => string(7) "1967738" private _name => string(23) "Qurchi-ye Aḩmadabad" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
50 => object WLocation(4){ private _id => string(6) "807836" private _name => string(7) "Salvard" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
51 => object WLocation(4){ private _id => string(5) "15366" private _name => string(10) "Sarrnakunk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
52 => object WLocation(4){ private _id => string(5) "15367" private _name => string(5) "Shaki" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
53 => object WLocation(4){ private _id => string(5) "15368" private _name => string(5) "Shamb" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
54 => object WLocation(4){ private _id => string(5) "15369" private _name => string(9) "Shikahogh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
55 => object WLocation(4){ private _id => string(5) "15370" private _name => string(9) "Shinuhayr" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
56 => object WLocation(4){ private _id => string(5) "15371" private _name => string(10) "Shvanidzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
57 => object WLocation(4){ private _id => string(5) "11588" private _name => string(6) "Sisian" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
58 => object WLocation(4){ private _id => string(5) "15372" private _name => string(8) "Svarants" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
59 => object WLocation(4){ private _id => string(6) "807796" private _name => string(7) "Syunik'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
60 => object WLocation(4){ private _id => string(7) "1895842" private _name => string(8) "T'anahat" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
61 => object WLocation(4){ private _id => string(6) "807782" private _name => string(10) "Tandzatap'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
62 => object WLocation(4){ private _id => string(6) "807781" private _name => string(9) "Tandzaver" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
63 => object WLocation(4){ private _id => string(6) "807776" private _name => string(7) "Tashtun" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
64 => object WLocation(4){ private _id => string(6) "807773" private _name => string(6) "T'asik" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
65 => object WLocation(4){ private _id => string(5) "15382" private _name => string(5) "Tatev" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
66 => object WLocation(4){ private _id => string(5) "15373" private _name => string(4) "Tegh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
67 => object WLocation(4){ private _id => string(5) "15374" private _name => string(6) "Tolors" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
68 => object WLocation(4){ private _id => string(6) "807957" private _name => string(8) "Torunik'" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
69 => object WLocation(4){ private _id => string(5) "15375" private _name => string(4) "Tsav" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
70 => object WLocation(4){ private _id => string(6) "808126" private _name => string(6) "Tsghuk" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
71 => object WLocation(4){ private _id => string(6) "807899" private _name => string(8) "Ts'ghuni" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
72 => object WLocation(4){ private _id => string(6) "807749" private _name => string(4) "Uyts" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
73 => object WLocation(4){ private _id => string(6) "807748" private _name => string(7) "Uzhanis" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
74 => object WLocation(4){ private _id => string(6) "807745" private _name => string(8) "Vaghatin" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
75 => object WLocation(4){ private _id => string(6) "808138" private _name => string(8) "Vaghatur" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
76 => object WLocation(4){ private _id => string(6) "807746" private _name => string(8) "Vahravar" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
77 => object WLocation(4){ private _id => string(6) "807743" private _name => string(4) "Vank" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
78 => object WLocation(4){ private _id => string(6) "807739" private _name => string(11) "Vardanidzor" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
79 => object WLocation(4){ private _id => string(6) "807726" private _name => string(15) "Verin Girat'agh" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
80 => object WLocation(4){ private _id => string(6) "807727" private _name => string(15) "Verin Gyodak'lu" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
81 => object WLocation(4){ private _id => string(6) "807732" private _name => string(10) "Verin Hand" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
82 => object WLocation(4){ private _id => string(5) "15376" private _name => string(14) "Verin Khotanan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
83 => object WLocation(4){ private _id => string(6) "807718" private _name => string(14) "Verin Vachagan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
84 => object WLocation(4){ private _id => string(5) "15377" private _name => string(8) "Verishen" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
85 => object WLocation(4){ private _id => string(6) "807863" private _name => string(6) "Voghji" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
86 => object WLocation(4){ private _id => string(5) "15378" private _name => string(7) "Vorotan" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
87 => object WLocation(4){ private _id => string(6) "807700" private _name => string(6) "Yegheg" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
88 => object WLocation(4){ private _id => string(5) "15379" private _name => string(8) "Yeghvard" private _region => object Region(4) { *RECURSION* } private _forecasts => array(3) ( "monthly" => NULL "current" => NULL "morning" => NULL ) }
89 => object WLocation(4){ private _id => string(6) "807701" private _name => string(7) "Zovaber" 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(2) "03"
2
string(4) "2024"
56 } 57 if(!$year){ 58 $year = date('Y'); 59 } 60 if(!isset($this->_forecasts['monthly'][$year][$month])){ 61 $this->_forecasts['monthly'][$year][$month] = Weather::instance()->_getMonthForecast($this,$month,$year); 62 } 63 64 return $this->_forecasts['monthly'][$year][$month]; 65 } 66
-
MODPATH/weat1/classes/WLocation.php [ 129 ] » WLocation->getMonthForecast(arguments)
0
string(2) "03"
1
string(4) "2024"
124 return $this->getDaysSummaryForecast(7); 125 } 126 127 public function getDaysSummaryForecast($daysCount){ 128 if(isset($this->_forecasts['daysSumm-'.$daysCount])) return $this->_forecasts['daysSumm-'.$daysCount]; 129 $currMonthFc = $this->getMonthForecast(date('m'),date('Y')); 130 $nxtMonthFc = null; 131 $dayNow = date('d'); 132 $daysFc = []; 133 foreach ($currMonthFc as $day => $fc){ 134 if($day >= $dayNow){
-
APPPATH/classes/Controller/Main.php [ 426 ] » WLocation->getDaysSummaryForecast(arguments)
0
integer 7
421 } 422 $location = $region->location($locationName); 423 if(!$location){ 424 throw new HTTP_Exception_404(); 425 } 426 $forecasts = $location->getDaysSummaryForecast($daysCnt); 427 if(empty($forecasts)){ 428 throw new HTTP_Exception_404(); 429 } 430 switch ($daysCnt){ 431 case 5:
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Main->action_days_summary()
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(37) "Weather in Armenia, forecast for 2024" public description => string(71) "exanak.am service provides real weather data in Armenia and its regions" 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(57) "(<lang>/)<days>-days-weather-forecast/<region>/<location>" protected _regex => array(4) ( "days" => string(10) "[0-9]{1,2}" "location" => string(6) "[a-z]+" "region" => string(6) "[a-z]+" "lang" => string(5) "en|ru" ) protected _defaults => array(4) ( "action" => string(12) "days_summary" "host" => bool FALSE "lang" => string(2) "hy" "controller" => string(4) "main" ) protected _route_regex => string(109) "#^(?:(?P<lang>en|ru)/)?(?P<days>[0-9]{1,2})-days-weather-forecast/(?P<region>[a-z]+)/(?P<location>[a-z]+)$#uD" }
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(12) "days_summary" protected _uri => string(42) "en/7-days-weather-forecast/syunik/brrnakot" protected _external => bool FALSE protected _params => array(5) ( "lang" => string(2) "en" "days" => string(1) "7" "region" => string(6) "syunik" "location" => string(8) "brrnakot" "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(57) "(<lang>/)<days>-days-weather-forecast/<region>/<location>" protected _regex => array(4) ( "days" => string(10) "[0-9]{1,2}" "location" => string(6) "[a-z]+" "region" => string(6) "[a-z]+" "lang" => string(5) "en|ru" ) protected _defaults => array(4) ( "action" => string(12) "days_summary" "host" => bool FALSE "lang" => string(2) "hy" "controller" => string(4) "main" ) protected _route_regex => string(109) "#^(?:(?P<lang>en|ru)/)?(?P<days>[0-9]{1,2})-days-weather-forecast/(?P<region>[a-z]+)/(?P<location>[a-z]+)$#uD" }
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(12) "days_summary" protected _uri => string(42) "en/7-days-weather-forecast/syunik/brrnakot" protected _external => bool FALSE protected _params => array(5) ( "lang" => string(2) "en" "days" => string(1) "7" "region" => string(6) "syunik" "location" => string(8) "brrnakot" "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(57) "(<lang>/)<days>-days-weather-forecast/<region>/<location>" protected _regex => array(4) ( "days" => string(10) "[0-9]{1,2}" "location" => string(6) "[a-z]+" "region" => string(6) "[a-z]+" "lang" => string(5) "en|ru" ) protected _defaults => array(4) ( "action" => string(12) "days_summary" "host" => bool FALSE "lang" => string(2) "hy" "controller" => string(4) "main" ) protected _route_regex => string(109) "#^(?:(?P<lang>en|ru)/)?(?P<days>[0-9]{1,2})-days-weather-forecast/(?P<region>[a-z]+)/(?P<location>[a-z]+)$#uD" }
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(12) "days_summary" protected _uri => string(42) "en/7-days-weather-forecast/syunik/brrnakot" protected _external => bool FALSE protected _params => array(5) ( "lang" => string(2) "en" "days" => string(1) "7" "region" => string(6) "syunik" "location" => string(8) "brrnakot" "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 }