Exemplo n.º 1
0
 /** @brief Retrieves URL using additional parameters.
  * @param $context [in] Query context.
  * @return Valid URL which can be queried using CURL.
  */
 public function get_url($context = null)
 {
     $url = parent::get_base_url('service');
     $params = $this->authentication->format_as_url_param($context['version']);
     $params['afs:layers'] = $context['layers'];
     return sprintf($url . '/%d/instance/%s/paf/%s/process?%s', $this->service->id, $this->service->status, $this->paf_name, $this->format_parameters($params));
 }
Exemplo n.º 2
0
 /** @internal
  * @brief Build URL from host, service and other parameters.
  * @param $context [in] Query context.
  * @return full URL to query.
  */
 public function get_url($context = null)
 {
     $url = parent::get_base_url('service');
     $params = $this->authentication->format_as_url_param($context->version);
     $params['afs:type'] = $this->paf_mode;
     if (!is_null($context->comment)) {
         $params['comment'] = $context->comment;
     }
     return sprintf($url . '/%d/instance/%s/paf/%s/upload?%s', $this->service->id, $this->service->status, $this->paf_name, $this->format_parameters($params));
 }
Exemplo n.º 3
0
 /** @brief Retrieves URL.
  * @param $context [in] Unused parameter.
  * @return Valid URL to query information about installed AFS Back Office.
  */
 public function get_url($context = null)
 {
     return parent::get_base_url('about');
 }