当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractForm::show方法代码示例

本文整理汇总了PHP中AbstractForm::show方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractForm::show方法的具体用法?PHP AbstractForm::show怎么用?PHP AbstractForm::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AbstractForm的用法示例。


在下文中一共展示了AbstractForm::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // enable menu item
     if (!empty($this->activeMenuItem)) {
         WCFACP::getMenu()->setActiveMenuItem($this->activeMenuItem);
     }
     parent::show();
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:11,代码来源:ACPForm.class.php

示例2: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // check user
     if (!WCF::getUser()->userID) {
         require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php';
         throw new PermissionDeniedException();
     }
     $_SERVER['HTTP_ACCEPT'] = str_replace('platzhalter', 'application/xhtml+xml', $_SERVER['HTTP_ACCEPT']);
     parent::show();
     //echo_foot();
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:14,代码来源:AllianceDiplomacyPage.class.php

示例3: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!MODULE_PM) {
         throw new IllegalLinkException();
     }
     // check permission
     WCF::getUser()->checkPermission('user.pm.canUsePm');
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:15,代码来源:PMRuleAddForm.class.php

示例4: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // check permission
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (MODULE_MODERATED_USER_GROUP != 1) {
         throw new IllegalLinkException();
     }
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.userGroups');
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:16,代码来源:UserGroupApplyForm.class.php

示例5: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (!MODULE_AVATAR) {
         throw new IllegalLinkException();
     }
     // check permission
     WCF::getUser()->checkPermission(array('user.profile.avatar.canUseDefaultAvatar', 'user.profile.avatar.canUploadAvatar'));
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.profile.avatar');
     // show form
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:18,代码来源:AvatarEditForm.class.php

示例6: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // check user
     if (!WCF::getUser()->userID) {
         require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php';
         throw new PermissionDeniedException();
     }
     parent::show();
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:12,代码来源:PlanetActionsForm.class.php

示例7: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     // set active tab
     require_once WCF_DIR . 'lib/page/util/menu/UserCPMenu.class.php';
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.management.ignoredBoards');
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:13,代码来源:BoardIgnoreForm.class.php

示例8: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // check user
     if (!WCF::getUser()->userID) {
         message('Zutritt nicht erlaubt!');
     }
     parent::show();
 }
开发者ID:Biggerskimo,项目名称:WOT-Game,代码行数:11,代码来源:MessageUserForm.class.php

示例9: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if (MODULE_HELP != 1) {
         throw new IllegalLinkException();
     }
     require_once WCF_DIR . 'lib/page/util/menu/PageMenu.class.php';
     PageMenu::setActiveMenuItem('wcf.header.menu.help');
     if (!count($_POST) && !empty($this->query)) {
         $this->submit();
     }
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:15,代码来源:HelpSearchForm.class.php

示例10: show

 /**
  * @see Form::show()
  */
 public function show()
 {
     // user is already registered
     if (WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     // registration disabled
     if (REGISTER_DISABLED) {
         throw new NamedUserException(WCF::getLanguage()->get('wcf.user.register.error.disabled'));
     }
     // get the default langauge id
     $this->languageID = WCF::getLanguage()->getLanguageID();
     // get user options and categories from cache
     $this->readCache();
     AbstractForm::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:19,代码来源:RegisterForm.class.php

示例11: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // set active menu item
     require_once WCF_DIR . 'lib/page/util/menu/PageMenu.class.php';
     PageMenu::setActiveMenuItem('wcf.header.menu.icsHolidayExporter');
     // check permission
     WCF::getUser()->checkPermission('user.managepages.canUseIHE');
     // show form
     parent::show();
 }
开发者ID:Maggan22,项目名称:wbb3addons,代码行数:13,代码来源:IcsHolidayExporterForm.class.php

示例12: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     $this->styleID = $this->user->styleID;
     // get user options and categories from cache
     $this->readCache();
     // set active tab
     $this->setCategory();
     // show form
     AbstractForm::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:16,代码来源:UserProfileEditForm.class.php

示例13: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->userID) {
         throw new PermissionDeniedException();
     }
     if (MODULE_USER_SIGNATURE != 1) {
         throw new IllegalLinkException();
     }
     // get max text length
     $this->maxTextLength = WCF::getUser()->getPermission('user.profile.signature.maxLength');
     // set active tab
     UserCPMenu::getInstance()->setActiveMenuItem('wcf.user.usercp.menu.link.profile.signature');
     // get signature
     if ($this->signatureCache == null) {
         $this->signatureCache = WCF::getUser()->signatureCache;
     }
     $this->text = WCF::getUser()->signature;
     // show form
     AbstractForm::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:23,代码来源:SignatureEditForm.class.php

示例14: show

 /**
  * @see Form::show()
  */
 public function show()
 {
     // set active header menu item
     PageMenu::setActiveMenuItem('wcf.header.menu.memberslist');
     // check permission
     WCF::getUser()->checkPermission('user.membersList.canView');
     if (MODULE_MEMBERS_LIST != 1) {
         throw new IllegalLinkException();
     }
     // get user options and categories from cache
     $this->readCache();
     AbstractForm::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:16,代码来源:MembersSearchForm.class.php

示例15: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // check permission
     WCF::getUser()->checkPermission('admin.user.infraction.canWarnUser');
     if (MODULE_USER_INFRACTION != 1) {
         throw new IllegalLinkException();
     }
     // show form
     parent::show();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:13,代码来源:UserWarnForm.class.php


注:本文中的AbstractForm::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。