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


PHP AbstractAction::readParameters方法代码示例

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


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

示例1: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['interceptorMissiles'])) {
         $this->interceptorMissiles = intval($_POST['interceptorMissiles']);
     }
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:10,代码来源:InterceptorMissileKnockDownAction.class.php

示例2: readParameters

 /**
  * @see AbstractSecureAction::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['id'])) {
         $this->newsletterID = intval($_GET['id']);
     }
 }
开发者ID:CaribeSoy,项目名称:Newsletter-System,代码行数:10,代码来源:SendNewsletterAction.class.php

示例3: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['production'])) {
         $this->production = StringUtil::trim($_REQUEST['production']);
     }
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:10,代码来源:SetRefineryProductionAction.class.php

示例4: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['filename'])) {
         $this->filename = StringUtil::trim($_POST['filename']);
     }
     if (isset($_POST['saveSelection'])) {
         $this->saveSelection = true;
     }
     if (isset($_POST['sourceID'])) {
         $this->sourceID = intval($_POST['sourceID']);
     }
     if (isset($_POST['wcfSetupResource'])) {
         $this->wcfSetupResource = StringUtil::trim($_POST['wcfSetupResource']);
         // override package name if building WCFSetup
         $this->filename = 'pn';
     }
     $this->source = new Source($this->sourceID);
     if (!$this->source->sourceID) {
         throw new IllegalLinkException();
     }
     if (!$this->source->hasAccess()) {
         throw new PermissionDeniedException();
     }
     // read selected resources
     $this->readPackageSelection();
     // handle current directory resource
     $sourceData = WCF::getSession()->getVar('source' . $this->source->sourceID);
     if ($sourceData === null) {
         throw new SystemException('Resource directory missing');
     }
     $sourceData = unserialize($sourceData);
     $this->directory = $sourceData['directory'];
 }
开发者ID:ZerGabriel,项目名称:PackageBuilder,代码行数:37,代码来源:BuildPackageAction.class.php

示例5: readParameters

 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['action'])) {
         $this->action = $_REQUEST['action'];
     }
 }
开发者ID:Maggan22,项目名称:wbb3addons,代码行数:7,代码来源:NewsreaderCacheAction.class.php

示例6: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['fleetID'])) {
         $this->fleetID = LWUtil::checkInt($_REQUEST['fleetID']);
     }
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:10,代码来源:FleetCancelAction.class.php

示例7: readParameters

 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['serverID'])) {
         $this->serverID = intval($_REQUEST['serverID']);
     }
 }
开发者ID:Evil-Co-Legacy,项目名称:Bash-Database,代码行数:7,代码来源:ServerDeleteAction.class.php

示例8: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_POST['sourceListPositions']) && is_array($_POST['sourceListPositions'])) {
         $this->positions = ArrayUtil::toIntegerArray($_POST['sourceListPositions']);
     }
 }
开发者ID:ZerGabriel,项目名称:PackageBuilder,代码行数:10,代码来源:SourceSortAction.class.php

示例9: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['templatePackID'])) {
         $this->templatePackID = intval($_REQUEST['templatePackID']);
     }
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:10,代码来源:TemplatePackDeleteAction.class.php

示例10: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['allianceID'])) {
         $this->allianceID = intval($_REQUEST['allianceID']);
     } else {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
     } else {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     if ($this->allianceID != WCF::getUser()->ally_id) {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     if ($this->userID != WCF::getUser()->userID) {
         require_once WCF_DIR . 'lib/system/exception/IllegalLinkException.class.php';
         throw new IllegalLinkException();
     }
     $this->alliance = Alliance::getByUserID(WCF::getUser()->userID, true);
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:28,代码来源:AllianceDeleteAction.class.php

示例11: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['languageID'])) {
         $this->languageID = intval($_REQUEST['languageID']);
     }
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:10,代码来源:LanguageSetAsDefaultAction.class.php

示例12: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_GET['buildingID'])) {
         $this->buildingID = intval($_GET['buildingID']);
     }
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:10,代码来源:BuildingKnockDownAction.class.php

示例13: readParameters

 /**
  * @see	Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     // check permissions
     WCF::getUser()->checkPermission('admin.content.cms.canEditPages');
     if (isset($_REQUEST['instanceID'])) {
         $this->instanceID = intval($_REQUEST['instanceID']);
     }
 }
开发者ID:Evil-Co-Legacy,项目名称:Evil-Co.de-CMS,代码行数:12,代码来源:DynamicPageModuleUnassignAction.class.php

示例14: readParameters

 public function readParameters()
 {
     parent::readParameters();
     if (BASHCore::getUser()->userID == 0) {
         throw new PermissionDeniedException();
     }
     if (isset($_REQUEST['entryID'])) {
         $this->entryID = intval($_REQUEST['entryID']);
     }
 }
开发者ID:Evil-Co-Legacy,项目名称:Bash-Database,代码行数:10,代码来源:BashEntryEnableAction.class.php

示例15: readParameters

 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['groupID'])) {
         $this->groupID = intval($_REQUEST['groupID']);
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:13,代码来源:GroupDeleteAction.class.php


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