PHP Class AdminPageFramework_WPUtility_Option

Inheritance: extends AdminPageFramework_WPUtility_File
Mostrar archivo Open project: michaeluno/admin-page-framework Class Usage Examples

Public Methods

Method Description
_getCompatibleTransientKey ( $sSubject, $iAllowedCharacterLength = 45 )
deleteTransient ( $sTransientKey )
getOption ( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = [] )
getSiteOption ( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = [] )
getTransient ( $sTransientKey, $vDefault = null )
setTransient ( $sTransientKey, $vValue, $iExpiration )

Private Methods

Method Description
_getOptionByFunctionName ( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = [], $sFunctionName = 'get_option' )

Method Details

_getCompatibleTransientKey() public static method

public static _getCompatibleTransientKey ( $sSubject, $iAllowedCharacterLength = 45 )

deleteTransient() public static method

public static deleteTransient ( $sTransientKey )

getOption() public static method

public static getOption ( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = [] )
$aAdditionalOptions array

getSiteOption() public static method

public static getSiteOption ( $sOptionKey, $asKey = null, $vDefault = null, array $aAdditionalOptions = [] )
$aAdditionalOptions array

getTransient() public static method

public static getTransient ( $sTransientKey, $vDefault = null )

setTransient() public static method

public static setTransient ( $sTransientKey, $vValue, $iExpiration )