PHP Class M1\Vars\Variables\VariableStore

Since: 1.0.0
Inheritance: extends M1\Vars\Resource\AbstractResource
显示文件 Open project: m1/Vars Class Usage Examples

Public Methods

Method Description
createPrefix ( boolean $relative ) Creates a relative prefix for the store
createPrefixName ( string $prefix, string $key ) : string Creates a new prefix name for the store
getPrefix ( ) : string Get the prefix
setCurrentPrefix ( string $prefix ) Sets the current prefix

Method Details

createPrefix() public method

Creates a relative prefix for the store
public createPrefix ( boolean $relative )
$relative boolean Is the prefix relative

createPrefixName() public method

Creates a new prefix name for the store
public createPrefixName ( string $prefix, string $key ) : string
$prefix string The prefix for the store
$key string The key for the item
return string The new prefix

getPrefix() public method

Get the prefix
public getPrefix ( ) : string
return string The prefix

setCurrentPrefix() public method

Sets the current prefix
public setCurrentPrefix ( string $prefix )
$prefix string The new prefix