Пример #1
0
 /**
  * The json url for the ajax "tree"
  * @return string
  */
 protected function JsonUrl()
 {
     return BackendRouter::AjaxUrl(new JsonAreaList());
 }
 /**
  * The url for the ajax json response
  * @return string
  */
 protected function JsonUrl()
 {
     return BackendRouter::AjaxUrl(new JsonContainerContentTree());
 }
Пример #3
0
 protected function JsonUrl()
 {
     return BackendRouter::AjaxUrl(new JsonNavigationTree());
 }
Пример #4
0
 protected function OnSuccess()
 {
     $page = $this->Value('page');
     if (!$page) {
         $this->UnsetPage();
         $this->CloseModal();
     } else {
         if ($this->pageOnly) {
             $objPage = Page::Schema()->ByID($page);
             $page = $this->SetJSFieldValue('#' . $this->prefix . 'Page', $page);
             $this->SetJSHtml('#' . $this->prefix . 'Name', $objPage->GetName());
             $this->CloseModal();
             return;
         }
     }
     $params = array();
     $params['prefix'] = $this->prefix;
     $params['page'] = $this->Value('page');
     $params['params'] = Request::GetData('params');
     $params['fragment'] = Request::GetData('fragment');
     $this->RedirectModal(BackendRouter::AjaxUrl(new AjaxPageParams(), $params));
 }
Пример #5
0
 protected function OpenUrl()
 {
     $args = array('pageOnly' => '1');
     if (count($this->disabledPageIDs) > 0) {
         $args['disabled'] = $this->disabledPageIDs;
     }
     if ($this->site) {
         $args['site'] = $this->site->GetID();
     }
     return BackendRouter::AjaxUrl(new AjaxSelectPage(), $args);
 }