コード例 #1
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['className'])) {
         $this->className = StringUtil::trim($_POST['className']);
     }
     if (isset($_POST['description'])) {
         $this->description = StringUtil::trim($_POST['description']);
     }
     if (isset($_POST['startMinute'])) {
         $this->startMinute = StringUtil::replace(' ', '', $_POST['startMinute']);
     }
     if (isset($_POST['startHour'])) {
         $this->startHour = StringUtil::replace(' ', '', $_POST['startHour']);
     }
     if (isset($_POST['startDom'])) {
         $this->startDom = StringUtil::replace(' ', '', $_POST['startDom']);
     }
     if (isset($_POST['startMonth'])) {
         $this->startMonth = StringUtil::replace(' ', '', $_POST['startMonth']);
     }
     if (isset($_POST['startDow'])) {
         $this->startDow = StringUtil::replace(' ', '', $_POST['startDow']);
     }
 }
コード例 #2
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_FILES['optionImport'])) {
         $this->optionImport = $_FILES['optionImport'];
     }
 }
コード例 #3
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
 }
コード例 #4
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['masterPassword'])) {
         $this->masterPassword = $_POST['masterPassword'];
     }
     if (isset($_POST['url'])) {
         $this->url = $_POST['url'];
     }
 }
コード例 #5
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['fileType']) && $_POST['fileType'] == 'xml') {
         $this->fileType = $_POST['fileType'];
     }
     if (isset($_POST['separator'])) {
         $this->separator = $_POST['separator'];
     }
     if (isset($_POST['textSeparator'])) {
         $this->textSeparator = $_POST['textSeparator'];
     }
 }
コード例 #6
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['serverURL'])) {
         $this->serverURL = StringUtil::trim($_POST['serverURL']);
     }
     if (isset($_POST['loginUsername'])) {
         $this->loginUsername = $_POST['loginUsername'];
     }
     if (isset($_POST['loginPassword'])) {
         $this->loginPassword = $_POST['loginPassword'];
     }
 }
コード例 #7
0
ファイル: UserMailForm.class.php プロジェクト: ZerGabriel/WCF
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['userIDs'])) {
         $this->userIDs = ArrayUtil::toIntegerArray(explode(',', $_POST['userIDs']));
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
     if (isset($_POST['subject'])) {
         $this->subject = StringUtil::trim($_POST['subject']);
     }
     if (isset($_POST['text'])) {
         $this->text = StringUtil::trim($_POST['text']);
     }
     if (isset($_POST['from'])) {
         $this->from = StringUtil::trim($_POST['from']);
     }
     if (isset($_POST['enableHTML'])) {
         $this->enableHTML = intval($_POST['enableHTML']);
     }
 }
コード例 #8
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['downloadPackage'])) {
         $this->downloadPackage = StringUtil::trim($_POST['downloadPackage']);
     }
     if (isset($_FILES['uploadPackage'])) {
         $this->uploadPackage = $_FILES['uploadPackage'];
     }
 }
コード例 #9
0
 /**
  * @see wcf\form\IForm::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     $this->ignoreUniques = $this->plugin = $this->isApplication = 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['isApplication'])) {
         $this->isApplication = intval($_POST['isApplication']);
     }
     if (isset($_POST['other'])) {
         $this->other = intval($_POST['other']);
     }
     if (isset($_POST['ignoreUniques'])) {
         $this->ignoreUniques = intval($_POST['ignoreUniques']);
     }
 }