PHP Class RCCWP_Options, Magic-Fields

Datei anzeigen Open project: hunk/Magic-Fields Class Usage Examples

Public Methods

Method Description
Get ( string $key = null ) Get the options of magic fields
Set ( string $key, string $val ) Save a new value in the options
Update ( $options ) Update the options of Magic Fields

Method Details

Get() public static method

if is not specified a key is return a array with all the options of magic fields
public static Get ( string $key = null )
$key string is the name of the option.

Set() public static method

@param string $key is the name of the option to will be updated
public static Set ( string $key, string $val )
$key string
$val string is the new value of the option

Update() public static method

@params array $options is a array with the options of Magic Fields
public static Update ( $options )