/var/www/html/web/protected/models/database/PredpovednyModel.php(644)
632 $tot_temp += $m->teplota; 633 $tot_cloud_n += $m->oblacnost_n; 634 $tot_cloud_s += $m->oblacnost_s; 635 $tot_cloud_v += $m->oblacnost_v; 636 $tot_wind += $m->vietor; 637 $tot_gusts += $m->vietor_naraz; 638 $tot_dir += $m->vietor_smer; 639 } 640 if ($tot_precip > 0) 641 $this->sneh = $tot_snow / $tot_precip; 642 else 643 $this->sneh = 0; 644 $this->zrazky = $tot_precip / $count; 645 $this->teplota = $tot_temp / $count; 646 $this->oblacnost_n = $tot_cloud_n / $count; 647 $this->oblacnost_s = $tot_cloud_s / $count; 648 $this->oblacnost_v = $tot_cloud_v / $count; 649 $this->vietor = $tot_wind / $count; 650 $this->vietor_naraz = $tot_gusts / $count; 651 $this->vietor_smer = $tot_dir / $count; 652 } 653 654 /** 655 * produces abbreviated wind direction (e.g. SV, SZ, J, JV...) from numerical (angular) representation <0;360> 656 */
#0 |
+
–
/var/www/html/web/protected/controllers/MeteoWidgetController.php(97): PredpovednyModel->makeAverage(array()) 092 $max = $r->teplota; 093 if ($r->teplota < $min) 094 $min = $r->teplota; 095 } 096 $model = new PredpovednyModel(); 097 $model->makeAverage($array_to_avg); 098 return array('max' => $max, 'min' => $min, 'icon' => $model->getOverallIcon()); 099 } 100 101 102 |
#1 |
+
–
/var/www/html/web/protected/controllers/MeteoWidgetController.php(54): MeteoWidgetController->loadDay(1710802800) 49 $this->results = array(); 50 $day_offset = (date('H') < 17) ? 0 : 1; 51 $start_date = mktime(0,0,0,date('m'), date('d') + $day_offset, date('Y')); 52 for ($i = 0; $i <= 2; $i++) { 53 $offset = mktime(0,0,0,date('m', $start_date), date('d', $start_date) + $i, date('Y', $start_date)); 54 $this->results[$offset] = $this->loadDay($offset); 55 } 56 57 58 } 59 |
#2 |
+
–
/var/www/html/web/protected/views/meteoWidget/index.php(8): MeteoWidgetController->load() 03 $cache_token = (isset($_GET['path']) ? $_GET['path'] :'' ). '-' . $this->format; 04 if (isset($_GET['lon']) && isset($_GET['lat'])) 05 $cache_token = "lon-{$_GET['lon']}-lat-{$_GET['lat']}-{$this->format}"; 06 07 if ($this->beginCache('meteowidget-' . $cache_token, array('duration' => $duration))) { 08 $this->load(); 09 $cityname = ($this->city == null) ? 'xxx' : $this->city->nazov; 10 $url = Yii::app()->urlManager->createUrl('/detailLokality', array('path' => $_GET['path'])) 11 ?> 12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
#3 |
+
–
/var/www/html/yii/framework/web/CBaseController.php(127): require("/var/www/html/web/protected/views/meteoWidget/index.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#4 |
+
–
/var/www/html/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/html/web/protected/views/meteoWidget/index.php", null, true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#5 |
+
–
/var/www/html/yii/framework/web/CController.php(870): CBaseController->renderFile("/var/www/html/web/protected/views/meteoWidget/index.php", null, true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#6 |
+
–
/var/www/html/web/protected/controllers/MeteoWidgetController.php(22): CController->renderPartial("index") 17 $allowedFormats = array('300x150', '200x150'); 18 if (!in_array($this->format, $allowedFormats)) 19 $this->format = 'index'; 20 21 $this->loadCacheParameters(); 22 $this->renderPartial($this->format); 23 } 24 25 public function actionExport() { 26 $len_okresne = isset($_GET['lenOkresne']); 27 |
#7 |
+
–
/var/www/html/yii/framework/web/actions/CInlineAction.php(50): MeteoWidgetController->actionIndex() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#8 |
+
–
/var/www/html/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("path" => "bratislava.okres-bratislava-v.petrzalka")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#9 |
+
–
/var/www/html/yii/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#10 |
+
–
/var/www/html/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#11 |
+
–
/var/www/html/yii/framework/web/CWebApplication.php(276): CController->run("") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#12 |
+
–
/var/www/html/yii/framework/web/CWebApplication.php(135): CWebApplication->runController("meteoWidget") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#13 |
+
–
/var/www/html/yii/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#14 |
+
–
/var/www/html/web/index.php(27): CApplication->run() 22 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 23 24 date_default_timezone_set('Europe/Bratislava'); 25 26 require_once($yii); 27 Yii::createWebApplication($config)->run(); 28 |