public function val($val = null, $store = true)
    {
        if (\func_num_args()) {
            // setting
            $this->setValue($val, $store);
        } else {
            if ($this->props['getValFormatted'] && !\in_array('getValFormatted', $this->callStack)) {
                $this->callStack[] = 'getValFormatted';
                $return = \call_user_func($this->props['getValFormatted'], $this);
                ArrayUtil::removeVal($this->callStack, 'getValFormatted');
                return $return;
            } else {
                return $this->valRaw();
            }
        }
    }
public function val($val = null, $store = true)
    {
        if (\func_num_args()) {
            // setting
            $this->setValue($val, $store);
        } else {
            if ($this->props['getValFormatted'] && !\in_array('getValFormatted', $this->callStack)) {
                $this->callStack[] = 'getValFormatted';
                $return = \call_user_func($this->props['getValFormatted'], $this);
                ArrayUtil::removeVal($this->callStack, 'getValFormatted');
                return $return;
            } else {
                return $this->valRaw();
            }
        }
    }
public function val ( $ val = null , $ store = true ) { if ( \ func_num_args ( ) ) { // setting $ this -> setValue ( $ val , $ store ) ; } else { if ( $ this -> props [ 'getValFormatted' ] && ! \ in_array ( 'getValFormatted' , $ this -> callStack ) ) { $ this -> callStack [ ] = 'getValFormatted' ; $ return = \ call_user_func ( $ this -> props [ 'getValFormatted' ] , $ this ) ; ArrayUtil :: removeVal ( $ this -> callStack , 'getValFormatted' ) ; return $ return ; } else { return $ this -> valRaw ( ) ; } } }
Get or set field's value
If getting, will return
+ formatted value if field has getValFormatted callable
+ raw value otherwise

@param mixed   $val   (optional) new value
@param boolean $store (true) store value?

@return mixed
Get or set field s value If getting will return + formatted value if field has getValFormatted callable + raw value otherwise