original_string: function exportValues($elementList = null)
      {
          $values = array();
          if (null === $elementList) {
              // iterate over all elements, calling their exportValue() methods
              foreach (array_keys($this->_elements) as $key) {
                  $value = $this->_elements[$key]->exportValue($this->_submitValues, true);
                  if (is_array($value)) {
                      // This shit throws a bogus warning in PHP 4.3.x
                      $values = HTML_QuickForm::arrayMerge($values, $value);
                  }
              }
          } else {
              if (!is_array($elementList)) {
                  $elementList = array_map('trim', explode(',', $elementList));
              }
              foreach ($elementList as $elementName) {
                  $value = $this->exportValue($elementName);
                  $pear = new PEAR();
                  if ($pear->isError($value)) {
                      return $value;
                  }
                  $values[$elementName] = $value;
              }
          }
          return $values;
      }
code: function exportValues($elementList = null)
      {
          $values = array();
          if (null === $elementList) {
              // iterate over all elements, calling their exportValue() methods
              foreach (array_keys($this->_elements) as $key) {
                  $value = $this->_elements[$key]->exportValue($this->_submitValues, true);
                  if (is_array($value)) {
                      // This shit throws a bogus warning in PHP 4.3.x
                      $values = HTML_QuickForm::arrayMerge($values, $value);
                  }
              }
          } else {
              if (!is_array($elementList)) {
                  $elementList = array_map('trim', explode(',', $elementList));
              }
              foreach ($elementList as $elementName) {
                  $value = $this->exportValue($elementName);
                  $pear = new PEAR();
                  if ($pear->isError($value)) {
                      return $value;
                  }
                  $values[$elementName] = $value;
              }
          }
          return $values;
      }
code_tokens: function exportValues ( $ elementList = null ) { $ values = array ( ) ; if ( null === $ elementList ) { // iterate over all elements, calling their exportValue() methods foreach ( array_keys ( $ this -> _elements ) as $ key ) { $ value = $ this -> _elements [ $ key ] -> exportValue ( $ this -> _submitValues , true ) ; if ( is_array ( $ value ) ) { // This shit throws a bogus warning in PHP 4.3.x $ values = HTML_QuickForm :: arrayMerge ( $ values , $ value ) ; } } } else { if ( ! is_array ( $ elementList ) ) { $ elementList = array_map ( 'trim' , explode ( ',' , $ elementList ) ) ; } foreach ( $ elementList as $ elementName ) { $ value = $ this -> exportValue ( $ elementName ) ; $ pear = new PEAR ( ) ; if ( $ pear -> isError ( $ value ) ) { return $ value ; } $ values [ $ elementName ] = $ value ; } } return $ values ; }
docstring: Returns 'safe' elements' values
  
  Unlike getSubmitValues(), this will return only the values
  corresponding to the elements present in the form.
  
  @param   mixed   Array/string of element names, whose values we want. If not set then return all elements.
  @access  public
  @return  array   An assoc array of elements' values
  @throws  HTML_QuickForm_Error
docstring_tokens: Returns safe elements values