Function __global->_opened_tag
Definitions
sources/comcode_compiler.php
- Helper function for setting up and juggling variables after reaching a new Comcode tag.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$as_admin | boolean | required parameter | N/A | N/A | Whether to explicitly execute this with admin rights. There are a few rare situations where this should be done, for data you know didn't come from a member, but is being evaluated by one. |
$source_member | MEMBER | required parameter | N/A | N/A | The member the evaluation is running as. This is a security issue, and you should only run as an administrator if you have considered where the Comcode came from carefully |
$attribute_map | array | required parameter | N/A | N/A | The attribute map of the tag |
$current_tag | string | required parameter | N/A | N/A | The identifier for the tag |
$pos | integer | required parameter | N/A | N/A | The offset of the tag in the Comcode |
$comcode_dangerous | boolean | required parameter | N/A | N/A | Whether the parser allows dangerous Comcode |
$comcode_dangerous_html | boolean | required parameter | N/A | N/A | Whether the parser allows dangerous HTML |
$in_separate_parse_section | boolean | required parameter | N/A | N/A | Whether the parser is/was in a separate parse section (e.g. a 'code' tag) |
$in_html | boolean | required parameter | N/A | N/A | Whether the parser is/was in an HTML region |
$in_semihtml | boolean | required parameter | N/A | N/A | Whether the parser is/was in a Semi-HTML region |
$close | boolean | required parameter | N/A | N/A | Whether the tag is a closing tag |
$len | integer | required parameter | N/A | N/A | The length of the Comcode |
$comcode | LONG_TEXT | required parameter | N/A | N/A | The Comcode being parsed |
Return
- A tuple of new parser settings
- Type: array
- Set: N/A
- Range: N/A