コード例 #1
0
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['staticParameters']) && is_array($_POST['staticParameters'])) {
         $this->staticParameters = $_POST['staticParameters'];
     }
     if (isset($_POST['matchExactly']) && is_array($_POST['matchExactly'])) {
         $this->matchExactly = $_POST['matchExactly'];
     }
     if (!isset($this->staticParameters['groupIDs']) || !is_array($this->staticParameters['groupIDs'])) {
         $this->staticParameters['groupIDs'] = array();
     }
     if (!isset($this->staticParameters['languageIDs']) || !is_array($this->staticParameters['languageIDs'])) {
         $this->staticParameters['languageIDs'] = array();
     }
     if (isset($_POST['invertGroupIDs'])) {
         $this->invertGroupIDs = intval($_POST['invertGroupIDs']);
     }
     if (isset($_POST['itemsPerPage'])) {
         $this->itemsPerPage = intval($_POST['itemsPerPage']);
     }
     if (isset($_POST['sortField'])) {
         $this->sortField = $_POST['sortField'];
     }
     if (isset($_POST['sortOrder'])) {
         $this->sortOrder = $_POST['sortOrder'];
     }
     if (isset($_POST['columns']) && is_array($_POST['columns'])) {
         $this->columns = $_POST['columns'];
     }
 }
コード例 #2
0
 /**
  * @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']);
     }
 }
コード例 #3
0
 /**
  * @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['groupIDArray']) && is_array($_POST['groupIDArray'])) {
         $this->groupIDArray = ArrayUtil::toIntegerArray($_POST['groupIDArray']);
     }
     if (isset($_POST['languageIDArray']) && is_array($_POST['languageIDArray'])) {
         $this->languageIDArray = ArrayUtil::toIntegerArray($_POST['languageIDArray']);
     }
     if (isset($_POST['invertGroupIDs'])) {
         $this->invertGroupIDs = intval($_POST['invertGroupIDs']);
     }
     // assign to group
     if (isset($_POST['assignToGroupIDArray']) && is_array($_POST['assignToGroupIDArray'])) {
         $this->assignToGroupIDArray = ArrayUtil::toIntegerArray($_POST['assignToGroupIDArray']);
     }
     // export mail address
     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'];
     }
     // send mail
     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']);
     }
 }