Ejemplo n.º 1
0
 /**
  * This method is adding query with current date to metadata URL
  * 
  * {@inheritdoc}
  */
 protected function getURL()
 {
     $url = parent::getUrl();
     if (empty($url)) {
         return;
     }
     $query = http_build_query(['formType' => 'searchFormDate', 'time_step' => 'daily', 'date' => (new \DateTime())->format('d.m.Y')]);
     return $url . '?' . $query;
 }
Ejemplo n.º 2
0
 public function execute()
 {
     foreach ([Currency::DOLLAR_ID => 'USD', Currency::EURO_ID => 'EUR'] as $currency_id => $currency_alias) {
         $this->current_curency_id = $currency_id;
         $this->current_curency_alias = $currency_alias;
         parent::execute();
     }
     return $this->returnValues();
 }