Habari\FormContainer::get_values PHP Метод

get_values() публичный Метод

Returns an associative array of the controls' values
public get_values ( ) : array
Результат array Associative array where key is control's name and value is the control's value
    public function get_values()
    {
        $values = array();
        foreach ($this->controls as $control) {
            if ($control instanceof FormContainer) {
                $values = array_merge($values, $control->get_values());
            } else {
                $values[$control->name] = $control->value;
            }
        }
        return $values;
    }