PHP Класс AdminPageFrameworkLoader_Option

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

Открытые свойства

Свойство Тип Описание
$aInstances Stores instances by option key.
$aOptions Stores the option values.

Защищенные свойства (Protected)

Свойство Тип Описание
$bIsNetworkAdmin Stores whether the currently loading page is in the network admin area.
$sOptionKey stores the option key for this plugin.

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

Метод Описание
__construct ( $sOptionKey ) Sets up properties.
delete ( ) Deletes the option from the database.
get ( ) Returns the specified option value.
getInstance ( $sOptionKey = '' ) Returns the instance of the class.
hasUpgraded ( ) : boolean Checks the version number
save ( $aOptions = null ) Saves the options.
set ( ) Sets the options.
update ( ) Sets and save the options.

Приватные методы

Метод Описание
_getFormattedOptions ( $sOptionKey ) Returns the formatted options array.
_getVersionByDepth ( $sVersion, $iDepth = 2 ) Returns a stating part of version by the given depth.

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

__construct() публичный Метод

Sets up properties.
public __construct ( $sOptionKey )

delete() публичный Метод

Deletes the option from the database.
public delete ( )

get() публичный Метод

Returns the specified option value.
С версии: 3.5.0
public get ( )

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

This is to ensure only one instance exists.
С версии: 3.5.0
public static getInstance ( $sOptionKey = '' )

hasUpgraded() публичный Метод

Checks the version number
С версии: 3.5.0
public hasUpgraded ( ) : boolean
Результат boolean True if yes; otherwise, false.

save() публичный Метод

Saves the options.
public save ( $aOptions = null )

set() публичный Метод

Sets the options.
public set ( )

update() публичный Метод

Sets and save the options.
public update ( )

Описание свойств

$aInstances публичное статическое свойство

Stores instances by option key.
С версии: 3.5.0
public static $aInstances

$aOptions публичное свойство

Stores the option values.
public $aOptions

$bIsNetworkAdmin защищенное свойство

Stores whether the currently loading page is in the network admin area.
protected $bIsNetworkAdmin

$sOptionKey защищенное свойство

stores the option key for this plugin.
protected $sOptionKey