PHP Class LightnCandy\Context

Inheritance: extends Flags
Mostrar archivo Open project: zordius/lightncandy Class Usage Examples

Public Methods

Method Description
create ( array\arraystring | integer> $options ) : array\arraystring | integer> Create a context from options
merge ( array\arraystring | integer> &$context, array\arraystring | integer> $tmp ) Merge a context into another

Protected Methods

Method Description
updateHelperTable ( array\arraystring | integer> &$context, array\arraystring | integer> $options, string $tname = 'helpers' ) : array\arraystring | integer> update specific custom helper table from options

Method Details

create() public static method

Create a context from options
public static create ( array\arraystring | integer> $options ) : array\arraystring | integer>
$options array\arraystring | integer>
return array\arraystring | integer>

merge() public static method

Merge a context into another
public static merge ( array\arraystring | integer> &$context, array\arraystring | integer> $tmp )
$context array\arraystring | integer>
$tmp array\arraystring | integer>

updateHelperTable() protected static method

update specific custom helper table from options
protected static updateHelperTable ( array\arraystring | integer> &$context, array\arraystring | integer> $options, string $tname = 'helpers' ) : array\arraystring | integer>
$context array\arraystring | integer>
$options array\arraystring | integer>
$tname string helper table name
return array\arraystring | integer>