예제 #1
0
 /**
  * @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);
 }
예제 #2
0
파일: Request.php 프로젝트: pscheit/psc-cms
 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();
 }
예제 #3
0
파일: Object.php 프로젝트: pscheit/psc-cms
 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));
 }
예제 #4
0
 protected function getURL(array $queryVars = array(), $flags = 0x0)
 {
     $flags |= URLHelper::MERGE_QUERY_VARS;
     return URLHelper::getRelative($flags, $queryVars);
 }