original_string: function exportValues($elementList = null){
          $unfiltered = array();
          if (null === $elementList) {
              // iterate over all elements, calling their exportValue() methods
              foreach (array_keys($this->_elements) as $key) {
                  if ($this->_elements[$key]->isFrozen() && !$this->_elements[$key]->_persistantFreeze) {
                      $varname = $this->_elements[$key]->_attributes['name'];
                      $value = '';
                      // If we have a default value then export it.
                      if (isset($this->_defaultValues[$varname])) {
                          $value = $this->prepare_fixed_value($varname, $this->_defaultValues[$varname]);
                      }
                  } else {
                      $value = $this->_elements[$key]->exportValue($this->_submitValues, true);
                  }
  
                  if (is_array($value)) {
                      // This shit throws a bogus warning in PHP 4.3.x
                      $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $value);
                  }
              }
          } else {
              if (!is_array($elementList)) {
                  $elementList = array_map('trim', explode(',', $elementList));
              }
              foreach ($elementList as $elementName) {
                  $value = $this->exportValue($elementName);
                  if (@PEAR::isError($value)) {
                      return $value;
                  }
                  //oh, stock QuickFOrm was returning array of arrays!
                  $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $value);
              }
          }
  
          if (is_array($this->_constantValues)) {
              $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues);
          }
          return $unfiltered;
      }
code: function exportValues($elementList = null){
          $unfiltered = array();
          if (null === $elementList) {
              // iterate over all elements, calling their exportValue() methods
              foreach (array_keys($this->_elements) as $key) {
                  if ($this->_elements[$key]->isFrozen() && !$this->_elements[$key]->_persistantFreeze) {
                      $varname = $this->_elements[$key]->_attributes['name'];
                      $value = '';
                      // If we have a default value then export it.
                      if (isset($this->_defaultValues[$varname])) {
                          $value = $this->prepare_fixed_value($varname, $this->_defaultValues[$varname]);
                      }
                  } else {
                      $value = $this->_elements[$key]->exportValue($this->_submitValues, true);
                  }
  
                  if (is_array($value)) {
                      // This shit throws a bogus warning in PHP 4.3.x
                      $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $value);
                  }
              }
          } else {
              if (!is_array($elementList)) {
                  $elementList = array_map('trim', explode(',', $elementList));
              }
              foreach ($elementList as $elementName) {
                  $value = $this->exportValue($elementName);
                  if (@PEAR::isError($value)) {
                      return $value;
                  }
                  //oh, stock QuickFOrm was returning array of arrays!
                  $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $value);
              }
          }
  
          if (is_array($this->_constantValues)) {
              $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues);
          }
          return $unfiltered;
      }
code_tokens: function exportValues ( $ elementList = null ) { $ unfiltered = array ( ) ; if ( null === $ elementList ) { // iterate over all elements, calling their exportValue() methods foreach ( array_keys ( $ this -> _elements ) as $ key ) { if ( $ this -> _elements [ $ key ] -> isFrozen ( ) && ! $ this -> _elements [ $ key ] -> _persistantFreeze ) { $ varname = $ this -> _elements [ $ key ] -> _attributes [ 'name' ] ; $ value = '' ; // If we have a default value then export it. if ( isset ( $ this -> _defaultValues [ $ varname ] ) ) { $ value = $ this -> prepare_fixed_value ( $ varname , $ this -> _defaultValues [ $ varname ] ) ; } } else { $ value = $ this -> _elements [ $ key ] -> exportValue ( $ this -> _submitValues , true ) ; } if ( is_array ( $ value ) ) { // This shit throws a bogus warning in PHP 4.3.x $ unfiltered = HTML_QuickForm :: arrayMerge ( $ unfiltered , $ value ) ; } } } else { if ( ! is_array ( $ elementList ) ) { $ elementList = array_map ( 'trim' , explode ( ',' , $ elementList ) ) ; } foreach ( $ elementList as $ elementName ) { $ value = $ this -> exportValue ( $ elementName ) ; if ( @ PEAR :: isError ( $ value ) ) { return $ value ; } //oh, stock QuickFOrm was returning array of arrays! $ unfiltered = HTML_QuickForm :: arrayMerge ( $ unfiltered , $ value ) ; } } if ( is_array ( $ this -> _constantValues ) ) { $ unfiltered = HTML_QuickForm :: arrayMerge ( $ unfiltered , $ this -> _constantValues ) ; } return $ unfiltered ; }
docstring: export submitted values
  
  @param string $elementList list of elements in form
  @return array
docstring_tokens: export submitted values