/**
  * Assign form data to user-submitted data.
  */
 function readInputData()
 {
     parent::readInputData();
     $this->readUserVars(array('username', 'password', 'password2', 'firstName', 'middleName', 'lastName', 'affiliation', 'email', 'country', 'interests', 'reviewerGroup', 'authorGroup', 'readerGroup'));
     if ($this->captchaEnabled) {
         $this->readUserVars(array('g-recaptcha-response'));
     }
     // Collect the specified user group IDs into a single piece of data
     $this->setData('userGroupIds', array_merge(array_keys((array) $this->getData('reviewerGroup')), array_keys((array) $this->getData('authorGroup')), array_keys((array) $this->getData('readerGroup'))));
 }
 /**
  * Assign user-submitted data to form.
  */
 function readInputData()
 {
     $this->readUserVars(array('columns', 'objectTypes', 'fileTypes', 'objectIds', 'issues', 'articles', 'timeFilterOption', 'countries', 'regions', 'cityNames', 'orderByColumn', 'orderByDirection'));
     return parent::readInputData();
 }
 /**
  * Assign form data to user-submitted data.
  */
 function readInputData()
 {
     $this->readUserVars(array('duracloudUrl', 'duracloudUsername', 'duracloudPassword'));
     return parent::readInputData();
 }
 /**
  * Assign form data to user-submitted data.
  * @see Form::readInputData()
  */
 function readInputData()
 {
     $this->readUserVars(array('doneMin', 'doneMax', 'avgMin', 'avgMax', 'lastMin', 'lastMax', 'activeMin', 'activeMax', 'keywords'));
     $keywords = $this->getData('keywords');
     if (is_array($keywords) && array_key_exists('interests', $keywords)) {
         $interests = $keywords['interests'];
         if ($interests != null && is_array($interests)) {
             // The interests are coming in encoded -- Decode them for DB storage
             $this->setData('interestSearchKeywords', array_map('urldecode', $interests));
         }
     }
     parent::readInputData();
 }
 /**
  * @copydoc Form::readInputData()
  */
 function readInputData($request)
 {
     parent::readInputData($request);
     $localesToInstall = $request->getUserVar('localesToInstall');
     $this->setData('localesToInstall', $localesToInstall);
 }
 /**
  * Assign form data to user-submitted data.
  */
 function readInputData()
 {
     parent::readInputData();
 }
 /**
  * Assign form data to user-submitted data.
  */
 function readInputData()
 {
     parent::readInputData();
     $this->readUserVars(array('username', 'password', 'password2', 'firstName', 'middleName', 'lastName', 'affiliation', 'email', 'country', 'sendPassword', 'interests', 'reviewerGroup', 'authorGroup', 'readerGroup'));
     if ($this->captchaEnabled) {
         $this->readUserVars(array('recaptcha_challenge_field', 'recaptcha_response_field'));
     }
     if ($this->getData('username') != null) {
         // Usernames must be lowercase
         $this->setData('username', strtolower($this->getData('username')));
     }
     // Collect the specified user group IDs into a single piece of data
     $this->setData('userGroupIds', array_merge(array_keys((array) $this->getData('reviewerGroup')), array_keys((array) $this->getData('authorGroup')), array_keys((array) $this->getData('readerGroup'))));
 }
 /**
  * Assign form data to user-submitted data.
  * @see Form::readInputData()
  */
 function readInputData()
 {
     $this->readUserVars(array('name', 'doneEnabled', 'doneMin', 'doneMax', 'avgEnabled', 'avgMin', 'avgMax', 'lastEnabled', 'lastMin', 'lastMax', 'activeEnabled', 'activeMin', 'activeMax', 'interests', 'previousReviewRounds'));
     $interests = $this->getData('interests');
     if (is_array($interests)) {
         // The interests are coming in encoded -- Decode them for DB storage
         $this->setData('interestSearchKeywords', array_map('urldecode', $interests));
     }
     parent::readInputData();
 }