Habari\Options::set_group PHP Метод

set_group() публичный статический Метод

Options::set_group( 'foo', array( 'bar' => 'baz', 'qux' => 'quux' ) ); results in 2 options: foo__bar == baz and foo__qux == quux
public static set_group ( string $prefix, array $values )
$prefix string The prefix to set
$values array An associative array of all options to be set with that prefix
    public static function set_group($prefix, $values)
    {
        if (substr($prefix, -2) != '__') {
            $prefix .= '__';
        }
        // loop through each option, setting it
        foreach ($values as $k => $v) {
            Options::set($prefix . $k, $v);
        }
    }