PHP Class M1\Vars\Variables\ReplacementStore

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

Public Methods

Method Description
__construct ( Vars $vars ) Creates new instance of VariableResource
load ( array $replacements ) : array Creates the replacement variable content from a file or array

Method Details

__construct() public method

Creates new instance of VariableResource
public __construct ( Vars $vars )
$vars M1\Vars\Vars Instance of the calling Vars

load() public method

Creates the replacement variable content from a file or array
public load ( array $replacements ) : array
$replacements array The replacements
return array The replacement variables