/**
  * @return string
  *
  * @TODO relativeURL wie simpleURL wäre geil
  */
 public function getTabsURL(array $qvars = array())
 {
     if (isset($this->tabsUrl)) {
         return $this->tabsUrl;
     }
     return URLHelper::getURL('/' . implode('/', $this->getTabsId()), URLHelper::RELATIVE, $qvars);
 }
Example #2
0
 public function __construct($url, File $cookieJar = NULL)
 {
     $this->setUrl($url);
     $this->ch = curl_init();
     $this->cookieJar = $cookieJar ?: File::createTemporary();
     $this->data = new stdClass();
     if (Helper::isHTTPS($this->url)) {
         $this->useSSL();
     }
     $this->manager = new EventManager();
 }
Example #3
0
 public function getTabsURL(array $qvars = array())
 {
     list($typeName, $id) = $this->getTabsId();
     return URLHelper::getURL('/ajax.php', URLHelper::MY_QUERY_VARS | URLHelper::RELATIVE, array_merge(array('todo' => 'tabs', 'ctrlTodo' => 'content.data', 'ajaxData' => array('type' => $typeName, 'identifier' => $id, 'data' => $this->getTabsData())), $qvars));
 }
Example #4
0
 protected function getURL(array $queryVars = array(), $flags = 0x0)
 {
     $flags |= URLHelper::MERGE_QUERY_VARS;
     return URLHelper::getRelative($flags, $queryVars);
 }