Class to handle compiling template tag calls for "form" in admin areas.
package | XenForo_Template |
---|
compile(\XenForo_Template_Compiler $compiler, string $tag, array $attributes, array $children, array $options) : string
string
Name of the tag called
array
Attributes for the tag (may be empty)
array
Nodes (tags/curlies/text) within this tag (may be empty)
array
Compilation options
string
_compileChoiceChild($newOutputVar, $child, \XenForo_Template_Compiler $compiler, array $options)
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_compileChoiceChild() |
---|
_compileRowOptions(\XenForo_Template_Compiler $compiler, array $rowOptions, array $compilerOptions, $htmlCode, $htmlOutputVar) : string
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_compileRowOptions() |
---|
\XenForo_Template_Compiler
array
array
string
_compileStandardData(\XenForo_Template_Compiler $compiler, array $compilerOptions, array $rowOptions, array $controlOptions) : array
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_compileStandardData() |
---|
\XenForo_Template_Compiler
array
Options for the compiler
array
Row options. Will be modified by reference.
array
Control options. Will be modified by reference.
array
Standardized data (label, name, value)_getChoicesCode(array $children, \XenForo_Template_Compiler $compiler, array $options, string $newOutputVar) : string
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_getChoicesCode() |
---|
array
Child tags to search
array
Compiler options
string
string
_getCompiledOutput(\XenForo_Template_Compiler $compiler, string $function, string $args, string | array $extraStatements, string | array $unsetVars) : \XenForo_Template_Compiler_Statement_Raw
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_getCompiledOutput() |
---|
\XenForo_Template_Compiler
string
Function to call in XenForo_Template_Helper_Admin namespace
string
String of PHP code for args
string
array
List of extra, raw PHP statements to prepend
string
array
List of variables to unset at the end, not including leading
_getControlOptions(\XenForo_Template_Compiler $compiler, array $attributes, array $extraExpected, boolean $includeStandard, boolean $allowData) : array
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_getControlOptions() |
---|
\XenForo_Template_Compiler
array
Raw key-value attribues list
array
Extra expected attributes, on top of the standard
boolean
If true, include the standard control tags
boolean
If true, allow all data-* attributes
array
Key-value pairs of expected attributes; data attributes in _data key_getDataAttributes(\XenForo_Template_Compiler $compiler, array $attributes) : array
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_getDataAttributes() |
---|
array
array
Key-value data pairs, without the "data-" prefix_getRowOptions(\XenForo_Template_Compiler $compiler, array $attributes, array $children, array $extraAllowedTags) : array
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_getRowOptions() |
---|
\XenForo_Template_Compiler
array
Attributes
array
Child elements
array
List of extra allowed child tags (that won't be treated as "content")
array
Key-value pairs of row options_getStandardAdminTagData(\XenForo_Template_Compiler $compiler, array $segments, array $extraAllowedTags) : array
Data will be pulled from tags in that list and their attributes only.
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::_getStandardAdminTagData() |
---|
\XenForo_Template_Compiler
array
List of segments
array
An optional list of additional tags that are allowed
array
Keys are standard data types that were found$_standardControlOptions : array
These apply to most controls but not all. Use this if the control support most or all of the standard options.
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::$$_standardControlOptions |
---|
$_standardOptionTags
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::$$_standardOptionTags |
---|
$_standardRowOptions : array
inherited_from | \XenForo_Template_Compiler_Tag_Admin_Abstract::$$_standardRowOptions |
---|