Ejemplo n.º 1
0
 public function buildHref()
 {
     if ($this->secure) {
         $this->mod_vars['authkey'] = \User\Current::getAuthKey();
     }
     if (!empty($this->mod_vars)) {
         foreach ($this->mod_vars as $k => $v) {
             if (is_array($v)) {
                 foreach ($v as $ak => $av) {
                     $data[] = $k . '[' . $ak . ']=' . $av;
                 }
             } else {
                 $data[] = "{$k}={$v}";
             }
         }
         // Ampersand will be changed to & in Tag class
         return $this->module_path . '?' . implode('&', $data);
     } else {
         return $this->module_path;
     }
 }