本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例8: show
/**
* @see Page::show()
*/
public function show()
{
// check user
if (!WCF::getUser()->userID) {
message('Zutritt nicht erlaubt!');
}
parent::show();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}