original_string: private function setValue($value, $store)
      {
          if (\in_array($this->attribs['type'], array('checkbox','select'))) {
              if (\is_null($value)) {
                  $value = array();
              }
              $this->props['values'] = (array) $value;
          } else {
              $this->attribs['value'] = $value;
          }
          if ($store) {
              if ($this->props['setValRaw']) {
                  \call_user_func($this->props['setValRaw'], $this, $value);
              } elseif ($this->form) {
                  $this->form->setValue($this->attribs['name'], $value, $this->props['pageI']);
              }
          }
      }
code: private function setValue($value, $store)
      {
          if (\in_array($this->attribs['type'], array('checkbox','select'))) {
              if (\is_null($value)) {
                  $value = array();
              }
              $this->props['values'] = (array) $value;
          } else {
              $this->attribs['value'] = $value;
          }
          if ($store) {
              if ($this->props['setValRaw']) {
                  \call_user_func($this->props['setValRaw'], $this, $value);
              } elseif ($this->form) {
                  $this->form->setValue($this->attribs['name'], $value, $this->props['pageI']);
              }
          }
      }
code_tokens: private function setValue ( $ value , $ store ) { if ( \ in_array ( $ this -> attribs [ 'type' ] , array ( 'checkbox' , 'select' ) ) ) { if ( \ is_null ( $ value ) ) { $ value = array ( ) ; } $ this -> props [ 'values' ] = ( array ) $ value ; } else { $ this -> attribs [ 'value' ] = $ value ; } if ( $ store ) { if ( $ this -> props [ 'setValRaw' ] ) { \ call_user_func ( $ this -> props [ 'setValRaw' ] , $ this , $ value ) ; } elseif ( $ this -> form ) { $ this -> form -> setValue ( $ this -> attribs [ 'name' ] , $ value , $ this -> props [ 'pageI' ] ) ; } } }
docstring: Set field's value
  
  @param mixed   $value value
  @param boolean $store store the value?
  
  @return void
docstring_tokens: Set field s value