database which this class queries by default
The Options class contains convenience functions around option handling. It is implemented as a singleton to prevent excessive DB requests; its content never changes during a script run.
availableOptions( className) : mixed|string|int
This function lists all known options. If called with the optional parameter $className, only options of that class are returned, otherwise the full set of all known attributes.
optionally specifies the class of options to be listed (class is the part of the option name before the : sign)
optionType( optionname) : mixed|string|int
This function returns the properties of a given attribute name. This currently means it returns its type and its flag field ("ML").
Name of the option whose properties are to be retrieved.
properties of the attribute
assertValidOptionName( unvettedName) :
This function is mostly useless. It takes an (unvetted) string, sees if it is a valid option name, and then returns the array key of the typeDb instead of the unvetted string. This makes Scrutinizer happy.
the input name
the name echoed back, but from trusted source