src/FormHandler.php
public function getData($name = null, $transform = true)
    {
        $data = $this->data;
        if ($transform === true) {
            $data = $this->transformFromFormData($this->data);
        }

        if ($name === null) {
            return $data;
        }
        else {
            if (isset($data[$name])) {
                return $data[$name];
            }
            else {
                return null;
            }
        }
    }
public function getData($name = null, $transform = true)
    {
        $data = $this->data;
        if ($transform === true) {
            $data = $this->transformFromFormData($this->data);
        }

        if ($name === null) {
            return $data;
        }
        else {
            if (isset($data[$name])) {
                return $data[$name];
            }
            else {
                return null;
            }
        }
    }
public function getData ( $ name = null , $ transform = true ) { $ data = $ this -> data ; if ( $ transform === true ) { $ data = $ this -> transformFromFormData ( $ this -> data ) ; } if ( $ name === null ) { return $ data ; } else { if ( isset ( $ data [ $ name ] ) ) { return $ data [ $ name ] ; } else { return null ; } } }
Get the values of all the form fields or a single form field

@param null|string|int $name
@param bool $transform
@return mixed
Get the values of all the form fields or a single form field