abstract |
---|
This class does extend all internal compile plugins
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
getAttributes(object $compiler, array $attributes): array
This function checks if the attributes passed are valid
The attributes passed for the tag to compile are checked…
This function checks if the attributes passed are valid The attributes passed for the tag to compile are checked against the list of required and optional attributes. Required attributes must be present. Optional attributes are check against the corresponding list. The keyword '_any' specifies that any attribute will be accepted as valid Parameters
Returnsof mapped attributes for further processing |
# | ||||||
public
|
openTag(object $compiler, string $openTag, mixed $data = null)
Push opening tag name on stack
Optionally additional data can be saved on stack
Push opening tag name on stack Optionally additional data can be saved on stack Parameters
|
# | ||||||
public
|
closeTag(object $compiler, array|string $expectedTag): mixed
Pop closing tag
Raise an error if this stack-top doesn't match with expected opening tags
Pop closing tag Raise an error if this stack-top doesn't match with expected opening tags Parameters
Returnsany type the opening tag's name or saved data |
# |
Properties | |||
---|---|---|---|
public
|
array
|
$required_attributes = []
|
# |
public
|
array
|
$optional_attributes = []
|
# |
public
|
array
|
$shorttag_order = []
|
# |
public
|
array
|
$option_flags = ['nocache']
|
# |
public
|
array
|
$optionMap = [1 => true, 0 => false, 'true' => true, 'false' => false]
|
# |
public
|
array
|
$mapCache = []
|
# |