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


PHP AbstractForm::readParameters方法代码示例

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


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

示例1: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['id'])) {
         $this->objectTypeID = intval($_REQUEST['id']);
     }
     // load object type
     $objectTypeDefinition = ObjectTypeCache::getInstance()->getDefinitionByName('com.woltlab.wcf.user.dashboardContainer');
     $this->objectType = ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID);
     if ($this->objectType === null || $this->objectType->definitionID != $objectTypeDefinition->definitionID) {
         throw new IllegalLinkException();
     }
     // load available boxes
     $allowedBoxTypes = array();
     if ($this->objectType->allowcontent) {
         $allowedBoxTypes[] = 'content';
     }
     if ($this->objectType->allowsidebar) {
         $allowedBoxTypes[] = 'sidebar';
     }
     if (empty($allowedBoxTypes)) {
         // this should not happen unless you go full retard
         throw new IllegalLinkException();
     }
     $boxList = new DashboardBoxList();
     $boxList->getConditionBuilder()->add("dashboard_box.boxType IN (?)", array($allowedBoxTypes));
     $boxList->readObjects();
     $this->boxes = $boxList->getObjects();
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:32,代码来源:DashboardOptionForm.class.php

示例2: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (WCF::getUser()->userID || WCF::getSession()->getVar('recaptchaDone')) {
         $this->useCaptcha = false;
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:10,代码来源:RecaptchaForm.class.php

示例3: readParameters

 /**
  * @see wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (!empty($_REQUEST['url'])) {
         $this->url = $_REQUEST['url'];
     }
 }
开发者ID:ZerGabriel,项目名称:WCF,代码行数:10,代码来源:LoginForm.class.php

示例4: readParameters

	/**
	 * @see	wcf\page\IPage::readParameters()
	 */
	public function readParameters() {
		parent::readParameters();
		
		if (file_exists(WCF_DIR.'acp/masterPassword.inc.php')) {
			require_once(WCF_DIR.'acp/masterPassword.inc.php');
		}
	}
开发者ID:0xLeon,项目名称:WCF,代码行数:10,代码来源:MasterPasswordForm.class.php

示例5: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['id'])) {
         $this->languageID = intval($_REQUEST['id']);
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:10,代码来源:LanguageExportForm.class.php

示例6: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     $this->stylePackageImportLocation = WCF::getSession()->getVar('stylePackageImportLocation');
     if ($this->stylePackageImportLocation) {
         $_POST['t'] = WCF::getSession()->getSecurityToken();
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:11,代码来源:PackageStartInstallForm.class.php

示例7: readParameters

 /**
  * @see	wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['id']) && !isset($_POST['username'])) {
         $this->userID = intval($_REQUEST['id']);
         $this->user[] = UserProfile::getUserProfile($this->userID);
     }
 }
开发者ID:jacboy,项目名称:JCoins,代码行数:11,代码来源:JCoinsTransferForm.class.php

示例8: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     // registration disabled
     if (!WCF::getUser()->userID && REGISTER_DISABLED) {
         throw new NamedUserException(WCF::getLanguage()->get('wcf.user.register.error.disabled'));
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:11,代码来源:DisclaimerForm.class.php

示例9: readParameters

	/**
	 * @see	wcf\page\IPage::readParameters()
	 */
	public function readParameters() {
		parent::readParameters();
		
		if (isset($_REQUEST['id'])) $this->packageID = intval($_REQUEST['id']);
		$this->application = new ViewableApplication(new Application($this->packageID));
		if (!$this->application->packageID) {
			throw new IllegalLinkException();
		}
	}
开发者ID:0xLeon,项目名称:WCF,代码行数:12,代码来源:ApplicationEditForm.class.php

示例10: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['u']) && !empty($_GET['u'])) {
         $this->userID = intval($_GET['u']);
     }
     if (isset($_GET['a']) && !empty($_GET['a'])) {
         $this->activationCode = intval($_GET['a']);
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:13,代码来源:EmailActivationForm.class.php

示例11: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (file_exists(WCF_DIR . 'acp/masterPassword.inc.php')) {
         require_once WCF_DIR . 'acp/masterPassword.inc.php';
     } else {
         HeaderUtil::redirect(LinkHandler::getInstance()->getLink('MasterPasswordInit'));
         exit;
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:13,代码来源:MasterPasswordForm.class.php

示例12: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     AbstractForm::readParameters();
     if (file_exists(WCF_DIR . 'acp/masterPassword.inc.php')) {
         require_once WCF_DIR . 'acp/masterPassword.inc.php';
         if (defined('MASTER_PASSWORD')) {
             throw new IllegalLinkException();
         }
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:13,代码来源:MasterPasswordInitForm.class.php

示例13: readParameters

 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['id'])) {
         $this->subscriptionID = intval($_REQUEST['id']);
     }
     $this->subscription = new PaidSubscription($this->subscriptionID);
     if (!$this->subscription->subscriptionID) {
         throw new PermissionDeniedException();
     }
 }
开发者ID:nick-strohm,项目名称:WCF,代码行数:14,代码来源:PaidSubscriptionUserAddForm.class.php

示例14: readParameters

	/**
	 * @see	wcf\page\IPage::readParameters()
	 */
	public function readParameters() {
		parent::readParameters();
		
		// get language editor object
		if (isset($_REQUEST['id'])) $this->languageID = intval($_REQUEST['id']);
		$language = LanguageFactory::getInstance()->getLanguage($this->languageID);
		if ($language === null) {
			throw new IllegalLinkException();
		}
		$this->language = new LanguageEditor($language);
	}
开发者ID:0xLeon,项目名称:WCF,代码行数:14,代码来源:LanguageExportForm.class.php

示例15: readParameters

	/**
	 * @see	wcf\page\IPage::readParameters()
	 */
	public function readParameters() {
		parent::readParameters();
		
		if (isset($_REQUEST['id'])) $this->styleID = intval($_REQUEST['id']);
		$this->style = new Style($this->styleID);
		if (!$this->style->styleID) {
			throw new IllegalLinkException();
		}
		
		if ($this->style->imagePath && $this->style->imagePath != 'images/') $this->canExportImages = true;
		if ($this->style->templateGroupID) $this->canExportTemplates = true;
	}
开发者ID:0xLeon,项目名称:WCF,代码行数:15,代码来源:StyleExportForm.class.php


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