예제 #1
0
 /**
  * Get forecast info from SerbianMeteo.
  *
  * @link http://serbianmeteo.com/
  *
  * @access public
  *
  * @return array $forecast Title and content of forecast.
  */
 public function serbianmeteo_forecast()
 {
     // Get forecast info for SerbianMeteo
     $forecast_info = Scrapper::serbianmeteo();
     // Format texts
     if ($forecast_info) {
         $forecast_info['w3c_time'] = date(DATE_W3C, $forecast_info['time']);
         $forecast_info['human_time'] = date_i18n('j. F Y. у H:i', $forecast_info['time']);
         $forecast_info['title'] = $this->to_cyrillic($forecast_info['title']);
         $forecast_info['description'] = $this->format_forecast($forecast_info['description']);
     }
     return $forecast_info;
 }