Habari\FormControl::process PHP Method

process() public method

Obtain the value of this control as supplied by the incoming $_POST values
public process ( )
    public function process()
    {
        // Can't use $this->input_name() directly because it has the name and array components concat'd
        if ($this->get_setting('process', true)) {
            $value = $_POST->raw($this->get_setting('input_name', $this->name));
            $input_array = $this->get_setting('input_array', array());
            while ($input_array) {
                $idx = array_shift($input_array);
                if (isset($value[$idx])) {
                    $value = $value[$idx];
                } else {
                    $value = null;
                    break;
                }
            }
            $this->set_value($value, false);
        }
    }