Метод | Описание | |
---|---|---|
__construct ( $template, $contextPath, $tplFile = null, $startingLine, $sourceTemplate = true ) | Constructor. | |
getContextPath ( ) : string | ||
getDirective ( ) : array | ||
getHashCode ( ) : string | ||
getIncludedFiles ( ) : array | ||
getIsSourceTemplate ( ) : boolean | ||
getItems ( ) : array | ||
getTemplateFile ( ) : string | ||
instantiateIn ( $tplControl, $parentControl = null ) | Instantiates the template. |
Метод | Описание | |
---|---|---|
configureComponent ( $component, $name, $value ) | Configures a property of a non-control component. | |
configureControl ( $control, $name, $value ) | Configures a property/event of a control. | |
configureEvent ( $control, $name, $value, $contextControl ) | Configures an event for a control. | |
configureProperty ( $component, $name, $value ) | Configures a simple property for a component. | |
configureSubProperty ( $component, $name, $value ) | Configures a subproperty for a component. | |
handleException ( $e, $line, $input = null ) | Handles template parsing exception. | |
isClassBehaviorMethod ( ReflectionClass $class, string $method ) : boolean | Checks if the given method belongs to a previously attached class behavior. | |
parse ( $input ) | Parses a template string. | |
parseAttribute ( $value ) : array | Parses a single attribute. | |
parseAttributes ( $str, $offset ) : array | Parses the attributes of a tag from a string. | |
parseTemplateProperty ( $content, $offset ) | ||
preprocess ( $input ) : string | Preprocesses the template string by including external templates | |
validateAttributes ( $type, $attributes ) |
public __construct ( $template, $contextPath, $tplFile = null, $startingLine, $sourceTemplate = true ) |
protected configureComponent ( $component, $name, $value ) |
protected configureControl ( $control, $name, $value ) |
protected configureEvent ( $control, $name, $value, $contextControl ) |
protected configureProperty ( $component, $name, $value ) |
protected configureSubProperty ( $component, $name, $value ) |
public getContextPath ( ) : string | ||
Результат | string | context directory path |
public getDirective ( ) : array | ||
Результат | array | name-value pairs declared in the directive |
public getHashCode ( ) : string | ||
Результат | string | hash code that can be used to identify the template |
public getIncludedFiles ( ) : array | ||
Результат | array | list of included external template files |
public getIsSourceTemplate ( ) : boolean | ||
Результат | boolean | whether this template is a source template, i.e., this template is loaded from some external storage rather than from within another template. |
public getTemplateFile ( ) : string | ||
Результат | string | template file path if available, null otherwise. |
protected handleException ( $e, $line, $input = null ) |
public instantiateIn ( $tplControl, $parentControl = null ) |
protected isClassBehaviorMethod ( ReflectionClass $class, string $method ) : boolean | ||
$class | ReflectionClass | |
$method | string | |
Результат | boolean |
protected parse ( $input ) |
protected parseAttribute ( $value ) : array | ||
Результат | array | attribute initialization |
protected parseAttributes ( $str, $offset ) : array | ||
Результат | array | attribute values indexed by names. |
protected preprocess ( $input ) : string | ||
Результат | string | expanded template string |