Class Option
This class is used to access and set application options
Methods summary
public static
string
|
#
get( string $name )
Get the value of an option
Get the value of an option
Parameters
- $name
- the option to get the value of, formatted like : .
Returns
string the value og the option
|
public static
array
|
#
getPluginOptions( string $plugin )
Load all the options of a given plugin
Load all the options of a given plugin
Parameters
- $plugin
- The plugin to find the options of
Returns
array All the options of the plugin with their values
|
public static
|
#
set( string $name, mixed $value )
Add an option or update an existing option value
Add an option or update an existing option value
Parameters
- $name
- The name of the option, formatted like : .
- $value
- The value to set for this option
|
public static
|
#
delete( string $name )
Remove an option
Parameters
- $name
- The name of the option, formatted like : .
|
public static
array
|
#
getAll( )
Get All options
Returns
array The array containing all options
|