BasePhpFormulaLoader
in package
implements
FormulaLoaderInterface
Loads asset formulae from PHP files.
Tags
Interfaces, Classes and Traits
- FormulaLoaderInterface
- Loads formulae.
Table of Contents
- $factory : mixed
- $prototypes : mixed
- __construct() : mixed
- addPrototype() : mixed
- load() : array<string|int, mixed>
- Loads formulae from a resource.
- argumentToArray() : mixed
- registerPrototypes() : array<string|int, mixed>
- Returns an array of prototypical calls and options.
- registerSetupCode() : string
- Returns setup code for the reflection scriptlet.
- tokenToString() : mixed
- processCall() : mixed
Properties
$factory
protected
mixed
$factory
$prototypes
protected
mixed
$prototypes
Methods
__construct()
public
__construct(AssetFactory $factory) : mixed
Parameters
- $factory : AssetFactory
Return values
mixed —addPrototype()
public
addPrototype(mixed $prototype[, array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $prototype : mixed
- $options : array<string|int, mixed> = array()
Return values
mixed —load()
Loads formulae from a resource.
public
load(ResourceInterface $resource) : array<string|int, mixed>
Formulae should be loaded the same regardless of the current debug mode. Debug considerations should happen downstream.
Parameters
- $resource : ResourceInterface
-
A resource
Return values
array<string|int, mixed> —An array of formulae
argumentToArray()
protected
static argumentToArray(mixed $argument) : mixed
Parameters
- $argument : mixed
Return values
mixed —registerPrototypes()
Returns an array of prototypical calls and options.
protected
abstract registerPrototypes() : array<string|int, mixed>
Return values
array<string|int, mixed> —Prototypes and options
registerSetupCode()
Returns setup code for the reflection scriptlet.
protected
abstract registerSetupCode() : string
Return values
string —Some PHP setup code
tokenToString()
protected
static tokenToString(mixed $token) : mixed
Parameters
- $token : mixed
Return values
mixed —processCall()
private
processCall(mixed $call[, array<string|int, mixed> $protoOptions = array() ]) : mixed
Parameters
- $call : mixed
- $protoOptions : array<string|int, mixed> = array()