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

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

Return the property value that is associated with the first present property from an array list This version only searches the list of the class' $properties array, because __get() on this objcet returns named FormControls instances
public get_value_out ( array $tag_fields ) : boolean | string
$tag_fields array A list of potential fields to try
Результат boolean | string False if no value found, string of the property value found
    public function get_value_out($tag_fields)
    {
        $properties = array_merge($this->properties, get_object_vars($this));
        $value_out = false;
        foreach (Utils::single_array($tag_fields) as $tag_field) {
            if (isset($properties[$tag_field])) {
                $value_out = $properties[$tag_field];
                break;
            }
        }
        return $value_out;
    }