PHP Класс RCCWP_Options, Magic-Fields

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

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

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() публичный статический Метод

@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() публичный статический Метод

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