/** * @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); }
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(); }
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)); }
protected function getURL(array $queryVars = array(), $flags = 0x0) { $flags |= URLHelper::MERGE_QUERY_VARS; return URLHelper::getRelative($flags, $queryVars); }