本文整理汇总了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();
}
示例2: readParameters
/**
* @see \wcf\page\IPage::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (WCF::getUser()->userID || WCF::getSession()->getVar('recaptchaDone')) {
$this->useCaptcha = false;
}
}
示例3: readParameters
/**
* @see wcf\page\IPage::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (!empty($_REQUEST['url'])) {
$this->url = $_REQUEST['url'];
}
}
示例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');
}
}
示例5: readParameters
/**
* @see \wcf\page\IPage::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['id'])) {
$this->languageID = intval($_REQUEST['id']);
}
}
示例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();
}
}
示例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);
}
}
示例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'));
}
}
示例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();
}
}
示例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']);
}
}
示例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;
}
}
示例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();
}
}
}
示例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();
}
}
示例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);
}
示例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;
}