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']);
            }
        }
    }