本文整理汇总了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']);
}
}
示例2: readParameters
/**
* @see AbstractSecureAction::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_GET['id'])) {
$this->newsletterID = intval($_GET['id']);
}
}
示例3: readParameters
/**
* @see Action::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['production'])) {
$this->production = StringUtil::trim($_REQUEST['production']);
}
}
示例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'];
}
示例5: readParameters
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['action'])) {
$this->action = $_REQUEST['action'];
}
}
示例6: readParameters
/**
* @see Action::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['fleetID'])) {
$this->fleetID = LWUtil::checkInt($_REQUEST['fleetID']);
}
}
示例7: readParameters
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['serverID'])) {
$this->serverID = intval($_REQUEST['serverID']);
}
}
示例8: readParameters
/**
* @see Action::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_POST['sourceListPositions']) && is_array($_POST['sourceListPositions'])) {
$this->positions = ArrayUtil::toIntegerArray($_POST['sourceListPositions']);
}
}
示例9: readParameters
/**
* @see Action::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['templatePackID'])) {
$this->templatePackID = intval($_REQUEST['templatePackID']);
}
}
示例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);
}
示例11: readParameters
/**
* @see Action::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_REQUEST['languageID'])) {
$this->languageID = intval($_REQUEST['languageID']);
}
}
示例12: readParameters
/**
* @see Action::readParameters()
*/
public function readParameters()
{
parent::readParameters();
if (isset($_GET['buildingID'])) {
$this->buildingID = intval($_GET['buildingID']);
}
}
示例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']);
}
}
示例14: readParameters
public function readParameters()
{
parent::readParameters();
if (BASHCore::getUser()->userID == 0) {
throw new PermissionDeniedException();
}
if (isset($_REQUEST['entryID'])) {
$this->entryID = intval($_REQUEST['entryID']);
}
}
示例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']);
}
}