original_string: function setValue($value)
      {
          $this->_createElementsIfNotExist();
          foreach (array_keys($this->_elements) as $key) {
              if (!$this->_appendName) {
                  $v = $this->_elements[$key]->_findValue($value);
                  if (null !== $v) {
                      $this->_elements[$key]->onQuickFormEvent('setGroupValue', $v, $this);
                  }
  
              } else {
                  $elementName = $this->_elements[$key]->getName();
                  $index       = strlen($elementName) ? $elementName : $key;
                  if (is_array($value)) {
                      if (isset($value[$index])) {
                          $this->_elements[$key]->onQuickFormEvent('setGroupValue', $value[$index], $this);
                      }
                  } elseif (isset($value)) {
                      $this->_elements[$key]->onQuickFormEvent('setGroupValue', $value, $this);
                  }
              }
          }
      }
code: function setValue($value)
      {
          $this->_createElementsIfNotExist();
          foreach (array_keys($this->_elements) as $key) {
              if (!$this->_appendName) {
                  $v = $this->_elements[$key]->_findValue($value);
                  if (null !== $v) {
                      $this->_elements[$key]->onQuickFormEvent('setGroupValue', $v, $this);
                  }
  
              } else {
                  $elementName = $this->_elements[$key]->getName();
                  $index       = strlen($elementName) ? $elementName : $key;
                  if (is_array($value)) {
                      if (isset($value[$index])) {
                          $this->_elements[$key]->onQuickFormEvent('setGroupValue', $value[$index], $this);
                      }
                  } elseif (isset($value)) {
                      $this->_elements[$key]->onQuickFormEvent('setGroupValue', $value, $this);
                  }
              }
          }
      }
code_tokens: function setValue ( $ value ) { $ this -> _createElementsIfNotExist ( ) ; foreach ( array_keys ( $ this -> _elements ) as $ key ) { if ( ! $ this -> _appendName ) { $ v = $ this -> _elements [ $ key ] -> _findValue ( $ value ) ; if ( null !== $ v ) { $ this -> _elements [ $ key ] -> onQuickFormEvent ( 'setGroupValue' , $ v , $ this ) ; } } else { $ elementName = $ this -> _elements [ $ key ] -> getName ( ) ; $ index = strlen ( $ elementName ) ? $ elementName : $ key ; if ( is_array ( $ value ) ) { if ( isset ( $ value [ $ index ] ) ) { $ this -> _elements [ $ key ] -> onQuickFormEvent ( 'setGroupValue' , $ value [ $ index ] , $ this ) ; } } elseif ( isset ( $ value ) ) { $ this -> _elements [ $ key ] -> onQuickFormEvent ( 'setGroupValue' , $ value , $ this ) ; } } } }
docstring: Sets values for group's elements
  
  @param     mixed    Values for group's elements
  @since     1.0
  @access    public
  @return    void
docstring_tokens: Sets values for group s elements