PEAR_Config::getSetValues PHP Method

getSetValues() public method

Get the list of allowed set values for a config value. Returns NULL for config values that are not sets.
public getSetValues ( $key ) : array
return array enumerated array of set values, or NULL if the config key is unknown or not a set
    function getSetValues($key)
    {
        if (isset($this->configuration_info[$key]) && isset($this->configuration_info[$key]['type']) && $this->configuration_info[$key]['type'] == 'set') {
            $valid_set = $this->configuration_info[$key]['valid_set'];
            reset($valid_set);
            if (key($valid_set) === 0) {
                return $valid_set;
            }
            return array_keys($valid_set);
        }
        return null;
    }