示例#1
0
 /**
  * This method is for adding currency alias to minfin URL
  * 
  * {@inheritdoc}
  */
 protected function getURL()
 {
     $url = parent::getUrl();
     if (empty($this->current_curency_alias) || empty($url)) {
         return;
     }
     return str_replace('%CURRENCY%', $this->current_curency_alias, $url);
 }
示例#2
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;
 }