示例#1
0
 /**
  * 
  * @return bool
  */
 protected function Init()
 {
     $this->AddNameField();
     $this->AddContentsField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#2
0
 /**
  * Initializes the member form
  * @return boolean Returns false to continue processing
  */
 protected function Init()
 {
     $this->group = new Membergroup(Request::GetData('membergroup'));
     $this->AddNameField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#3
0
 /**
  * Initializes the container form
  * @return boolea True if processing shall continue
  */
 protected function Init()
 {
     $this->container = new Container(Request::GetData('container'));
     $this->containerRights = new ContainerRights($this->container->GetUserGroupRights());
     $this->AddNameField();
     $this->AddUserGroupField();
     $this->AddSubmit();
     return parent::Init();
 }
 /**
  * Gets and checks the requested user
  * @return boolean False if processing can continue
  */
 protected function BeforeInit()
 {
     $this->user = User::Schema()->ByID(Request::GetData('user'));
     if (!$this->user || !self::Guard()->Allow(BackendAction::AssignGroups(), $this->user)) {
         //TODO: Error message
         Response::Redirect(BackendRouter::ModuleUrl(new UserList()));
     }
     return parent::BeforeInit();
 }
示例#5
0
 protected function Init()
 {
     $this->group = new Usergroup(Request::GetData('usergroup'));
     $this->AddNameField();
     $this->AddCreateLayoutsField();
     $this->AddCreateContainersField();
     $this->AddCreateSitesField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#6
0
 /**
  * Initializes the layout form
  * @return boolea
  */
 protected function Init()
 {
     $this->layout = new Layout(Request::GetData('layout'));
     $this->layoutRights = new LayoutRights($this->layout->GetUserGroupRights());
     $this->InitAreas();
     $this->AddNameField();
     $this->AddAreasField();
     $this->AddUserGroupField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#7
0
 /**
  * Initializes the member form
  * @return boolean Returns false to continue processing
  */
 protected function Init()
 {
     $this->member = new Member(Request::GetData('member'));
     $this->groupsExist = Membergroup::Schema()->Count() > 0;
     $this->AddNameField();
     $this->AddEMailField();
     $this->AddPasswordField();
     $this->AddMemberGroupField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#8
0
 /**
  * Initializes the form
  * @return boolean
  */
 protected function Init()
 {
     $this->user = new User(Request::GetData('user'));
     $this->AddNameField();
     $this->AddEmailField();
     $this->AddPasswordField();
     $this->AddPasswordRepeatField();
     $this->AddIsAdminField();
     $this->AddLanguageField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#9
0
 protected function Init()
 {
     $this->site = new Site(Request::GetData('site'));
     $this->siteRights = new SiteRights($this->site->GetUserGroupRights());
     $this->AddNameField();
     $this->AddUrlField();
     $this->AddLanguageField();
     $this->AddSubmit();
     $this->AddUserGroupField();
     $this->AddSitemapActiveField();
     $this->AddSitemapCacheLifetimeField();
     return parent::Init();
 }
示例#10
0
 protected function Init()
 {
     $this->settings = SettingsProxy::Singleton()->Settings();
     $this->AddLogLifetimeField();
     $this->AddMailFromEMailField();
     $this->AddMailFromNameField();
     $this->AddSmtpHostField();
     $this->AddSmtpPortField();
     $this->AddSmtpUserField();
     $this->AddSmtpPasswordField();
     $this->AddSmtpSecurityField();
     $this->AddSubmit();
     return parent::Init();
 }
 protected function Init()
 {
     $this->navi = new ContentNavigation(Request::GetData('navigation'));
     $this->naviTree = new NavigationTreeProvider($this->navi);
     $this->tree = new TreeBuilder($this->naviTree);
     $this->naviItem = new NavigationItem(Request::GetData('item'));
     if (Request::GetData('previous')) {
         $this->previous = NavigationItem::Schema()->ByID(Request::GetData('previous'));
     }
     if (Request::GetData('parent')) {
         $this->parent = NavigationItem::Schema()->ByID(Request::GetData('parent'));
     }
     $this->AddTypeField();
     $this->AddNameField();
     $this->AddPageItemSelector();
     //$this->AddPageField();
     //$this->AddParametersField();
     $this->AddUrlField();
     $this->AddSubmit();
     return parent::Init();
 }
示例#12
0
 /**
  * Returns -1; content forms never appear in side navigation
  * @return int
  */
 final function SideNavIndex()
 {
     return parent::SideNavIndex();
 }
示例#13
0
 protected function Init()
 {
     $this->AddModules();
     $this->AddSubmit();
     return parent::Init();
 }
示例#14
0
 /**
  * Initializes the form
  * @return boolean
  */
 protected function Init()
 {
     $this->page = new Page(Request::GetData('page'));
     $this->parent = Page::Schema()->ByID(Request::GetData('parent'));
     $this->previous = Page::Schema()->ByID(Request::GetData('previous'));
     $this->site = $this->page->Exists() ? $this->page->GetSite() : Site::Schema()->ByID(Request::GetData('site'));
     $this->dateFormat = Trans('Core.DateFormat');
     $this->InitPageRights();
     if (!$this->page->Exists() && !$this->site->Exists()) {
         Response::Redirect(BackendRouter::ModuleUrl(new SiteList()));
         return true;
     }
     $this->AddLayoutField();
     $this->AddNameField();
     $this->AddUrlField();
     $this->AddTitleField();
     $this->AddDescriptionField();
     $this->AddKeywordsField();
     $this->AddMenuAccessField();
     $this->AddUserGroupField();
     $this->AddGuestsOnlyField();
     $this->AddMemberGroupField();
     $this->AddPublishField();
     $this->AddSubmit();
     $this->AddPublishFromDateField();
     $this->AddPublishFromHourField();
     $this->AddPublishFromMinuteField();
     $this->AddPublishToDateField();
     $this->AddPublishToHourField();
     $this->AddPublishToMinuteField();
     $this->AddSitemapRelevanceField();
     $this->AddSitemapChangeFrequencyField();
     $this->AddTypeField();
     $this->AddRedirectTargetSelector();
     return parent::Init();
 }