SimpleForm::encode PHP Method

encode() protected method

Creates the encoding for the current values in the form.
protected encode ( ) : SimpleFormEncoding
return SimpleFormEncoding Request to submit.
    protected function encode()
    {
        $class = $this->encoding;
        $encoding = new $class();
        for ($i = 0, $count = count($this->widgets); $i < $count; $i++) {
            $this->widgets[$i]->write($encoding);
        }
        return $encoding;
    }