/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_POST['applicationIDs'])) { $this->applicationIDs = ArrayUtil::toIntegerArray($_POST['applicationIDs']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['username'])) { $this->username = StringUtil::trim($_POST['username']); } if (isset($_POST['email'])) { $this->email = StringUtil::trim($_POST['email']); } if (isset($_POST['confirmEmail'])) { $this->confirmEmail = StringUtil::trim($_POST['confirmEmail']); } if (isset($_POST['password'])) { $this->password = $_POST['password']; } if (isset($_POST['confirmPassword'])) { $this->confirmPassword = $_POST['confirmPassword']; } if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) { $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']); } if (isset($_POST['visibleLanguages']) && is_array($_POST['visibleLanguages'])) { $this->visibleLanguages = ArrayUtil::toIntegerArray($_POST['visibleLanguages']); } if (isset($_POST['languageID'])) { $this->languageID = intval($_POST['languageID']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['boardID'])) { $this->boardIDArray = ArrayUtil::toIntegerArray(explode(',', $_REQUEST['boardID'])); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['unignoredBoardIDArray']) && is_array($_POST['unignoredBoardIDArray'])) { $this->unignoredBoardIDArray = ArrayUtil::toIntegerArray($_POST['unignoredBoardIDArray']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['userID'])) { $this->userID = ArrayUtil::toIntegerArray($_REQUEST['userID']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->ignoreUniques = $this->plugin = $this->standalone = 0; if (isset($_POST['packageUpdateServerIDs']) && is_array($_POST['packageUpdateServerIDs'])) { $this->packageUpdateServerIDs = ArrayUtil::toIntegerArray($_POST['packageUpdateServerIDs']); } if (isset($_POST['packageName'])) { $this->packageName = StringUtil::trim($_POST['packageName']); } if (isset($_POST['author'])) { $this->author = StringUtil::trim($_POST['author']); } if (isset($_POST['searchDescription'])) { $this->searchDescription = intval($_POST['searchDescription']); } if (isset($_POST['plugin'])) { $this->plugin = intval($_POST['plugin']); } if (isset($_POST['standalone'])) { $this->standalone = intval($_POST['standalone']); } if (isset($_POST['other'])) { $this->other = intval($_POST['other']); } if (isset($_POST['ignoreUniques'])) { $this->ignoreUniques = intval($_POST['ignoreUniques']); } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_POST['sourceListPositions']) && is_array($_POST['sourceListPositions'])) { $this->positions = ArrayUtil::toIntegerArray($_POST['sourceListPositions']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['subject'])) { $this->subject = $_POST['subject']; } if (isset($_POST['text'])) { $this->text = $_POST['text']; } if (isset($_POST['enableSmilies'])) { $this->enableSmilies = $_POST['enableSmilies']; } if (isset($_POST['enableHtml'])) { $this->enableHtml = $_POST['enableHtml']; } if (isset($_POST['enableBBCodes'])) { $this->enableBBCodes = $_POST['enableBBCodes']; } if (isset($_POST['showSignature'])) { $this->showSignature = $_POST['showSignature']; } if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) { $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']); } if (isset($_POST['preview'])) { $this->preview = (bool) $_POST['preview']; } if (isset($_POST['send'])) { $this->send = (bool) $_POST['send']; } if (isset($_POST['maxLifeTime'])) { $this->maxLifeTime = intval($_POST['maxLifeTime']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->allTemplates = $this->useRegex = $this->caseSensitive = $this->replace = $this->invertSearch = $this->invertTemplates = 0; if (isset($_POST['allTemplates'])) { $this->allTemplates = intval($_POST['allTemplates']); } if (isset($_POST['templateID']) && is_array($_POST['templateID'])) { $this->templateID = ArrayUtil::toIntegerArray($_POST['templateID']); } if (isset($_POST['useRegex'])) { $this->useRegex = intval($_POST['useRegex']); } if (isset($_POST['caseSensitive'])) { $this->caseSensitive = intval($_POST['caseSensitive']); } if (isset($_POST['replace'])) { $this->replace = intval($_POST['replace']); } if (isset($_POST['invertSearch'])) { $this->invertSearch = intval($_POST['invertSearch']); } if (isset($_POST['invertTemplates'])) { $this->invertTemplates = intval($_POST['invertTemplates']); } if (isset($_POST['replaceBy'])) { $this->replaceBy = $_POST['replaceBy']; } if (isset($_POST['query'])) { $this->query = $_POST['query']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); $this->doSave = isset($_POST[get_class($this)]); // insert new if (isset($_POST['optionIDs']) && is_array($_POST['optionIDs'])) { $this->optionIDs = ArrayUtil::toIntegerArray($_POST['optionIDs']); } }
/** * @see OptionType::getData() */ public function getData($optionData, $newValue) { if (!is_array($newValue)) { $newValue = array(); } $newValue = ArrayUtil::toIntegerArray($newValue); sort($newValue, SORT_NUMERIC); return implode(',', $newValue); }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['userIDs'])) { $this->userIDs = implode(',', ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs']))); } if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) { $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']); } }
/** * @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']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['userIDs'])) { $this->userIDs = ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs'])); } if (isset($_POST['userID'])) { $this->userID = intval($_POST['userID']); } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['templateID']) && is_array($_REQUEST['templateID'])) { $this->templateID = ArrayUtil::toIntegerArray($_REQUEST['templateID']); } if (isset($_REQUEST['templatePackID'])) { $this->templatePackID = intval($_REQUEST['templatePackID']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['userIDs'])) { $this->userIDArray = ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs'])); } if (isset($_POST['reason'])) { $this->reason = StringUtil::trim($_POST['reason']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['enable'])) { $this->enable = intval($_POST['enable']); } if (isset($_POST['languageIDs']) && is_array($_POST['languageIDs'])) { $this->languageIDs = ArrayUtil::toIntegerArray($_POST['languageIDs']); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['threadID'])) { $this->threadIDArray = ArrayUtil::toIntegerArray(explode(',', $_REQUEST['threadID'])); } if (!count($this->threadIDArray)) { throw new IllegalLinkException(); } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); // get positions if (isset($_POST['headerMenuListPositions']) && is_array($_POST['headerMenuListPositions'])) { $this->headerPositions = ArrayUtil::toIntegerArray($_POST['headerMenuListPositions']); } if (isset($_POST['footerMenuListPositions']) && is_array($_POST['footerMenuListPositions'])) { $this->footerPositions = ArrayUtil::toIntegerArray($_POST['footerMenuListPositions']); } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); // get positions if (isset($_POST['ratingoptionListPositions']) && is_array($_POST['ratingoptionListPositions'])) { $this->positions = ArrayUtil::toIntegerArray($_POST['ratingoptionListPositions']); } if (isset($_POST['optionID'])) { $this->optionID = intval($_POST['optionID']); } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['messageID'])) { $this->messageID = intval($_REQUEST['messageID']); } if (isset($_REQUEST['command'])) { $this->command = StringUtil::trim($_REQUEST['command']); } if (isset($_REQUEST['folderIDs'])) { $this->folderIDs = ArrayUtil::toIntegerArray(explode(',', $_REQUEST['folderIDs'])); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['threadID'])) { $this->threadID = ArrayUtil::toIntegerArray($_REQUEST['threadID']); } if (isset($_REQUEST['boardID'])) { $this->boardID = intval($_REQUEST['boardID']); } if (isset($_REQUEST['url'])) { $this->url = $_REQUEST['url']; } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['wcfCronjob'])) { $this->wcfCronjob = intval($_POST['wcfCronjob']); if ($this->wcfCronjob) { $this->packageID = 1; } } if (isset($_POST['functions']) && is_array($_POST['functions'])) { $this->activeFunctions = ArrayUtil::toIntegerArray($_POST['functions']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['selectedPackages']) && is_array($_POST['selectedPackages'])) { $selectedPackages = ArrayUtil::toIntegerArray($_POST['selectedPackages']); $this->selectedPackages = array_combine($selectedPackages, $selectedPackages); if (isset($this->selectedPackages[0])) { unset($this->selectedPackages[0]); } } if (isset($_POST['exportCustomValues'])) { $this->exportCustomValues = true; } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['postID'])) { $this->postID = ArrayUtil::toIntegerArray($_REQUEST['postID']); } if (isset($_REQUEST['threadID'])) { $this->threadID = intval($_REQUEST['threadID']); } if (isset($_REQUEST['reason'])) { $this->reason = StringUtil::trim($_REQUEST['reason']); if (CHARSET != 'UTF-8') { $this->reason = StringUtil::convertEncoding('UTF-8', CHARSET, $this->reason); } } if (isset($_REQUEST['boardID'])) { $this->boardID = intval($_REQUEST['boardID']); } if (isset($_REQUEST['topic'])) { $this->topic = StringUtil::trim($_REQUEST['topic']); if (CHARSET != 'UTF-8') { $this->topic = StringUtil::convertEncoding('UTF-8', CHARSET, $this->topic); } } if (isset($_REQUEST['url'])) { $this->url = $_REQUEST['url']; } // check permissions if (!is_array($this->postID) && $this->postID != 0) { require_once WBB_DIR . 'lib/data/post/PostEditor.class.php'; $this->post = new PostEditor($this->postID); if (!$this->post->postID) { throw new IllegalLinkException(); } $this->threadID = $this->post->threadID; } if ($this->threadID != 0) { require_once WBB_DIR . 'lib/data/thread/ThreadEditor.class.php'; $this->thread = new ThreadEditor($this->threadID); $this->boardID = $this->thread->boardID; $this->thread->enter(); } if ($this->boardID != 0) { require_once WBB_DIR . 'lib/data/board/BoardEditor.class.php'; $this->board = new BoardEditor($this->boardID); if ($this->thread != null) { $this->thread->enter(); } } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['folderID'])) { $this->folderID = intval($_REQUEST['folderID']); } if (isset($_REQUEST['pmID'])) { if (is_array($_REQUEST['pmID'])) { $this->pmID = ArrayUtil::toIntegerArray($_REQUEST['pmID']); } else { $this->pmID = intval($_REQUEST['pmID']); } } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_POST['action'])) { $this->action = $_POST['action']; } if (isset($_POST['smileyID'])) { if (is_array($_POST['smileyID'])) { $this->smileyID = ArrayUtil::toIntegerArray($_POST['smileyID']); } else { $this->smileyID = intval($_POST['smileyID']); } } }
/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_POST['userIDs'])) { $this->userIDs = ArrayUtil::toIntegerArray($_POST['userIDs']); } if (isset($_POST['groupID'])) { $this->groupID = intval($_POST['groupID']); } $this->group = new Group($this->groupID); if (!$this->group->groupID) { throw new IllegalLinkException(); } }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['checked'])) { $this->checked = 1; } if (isset($_REQUEST['active'])) { $this->active = ArrayUtil::toIntegerArray(explode(',', $_REQUEST['active'])); } if (isset($_REQUEST['pageNo'])) { $this->pageNo = intval($_REQUEST['pageNo']); } if (isset($_REQUEST['messageID'])) { $this->messageID = intval($_REQUEST['messageID']); } }
/** * @see Form::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); if (isset($_POST['fileType']) && $_POST['fileType'] == 'xml') { $this->fileType = $_POST['fileType']; } if (isset($_POST['userIDs'])) { $this->userIDs = implode(',', ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs']))); } if (isset($_POST['separator'])) { $this->separator = $_POST['separator']; } if (isset($_POST['textSeparator'])) { $this->textSeparator = $_POST['textSeparator']; } }