Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Tag/Registry.php - 210 lines - 5810 bytes - Source - Print

Description: Handles template tag registry.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Registry:: (8 methods):
register()
registerAttr()
process()
processAttr()
isRegistered()
isRegisteredAttr()
getRegistered()
getTag()

Class: Registry


register($callback, $tag = null)  line: 46
Registers a tag.

<code>
Txp::get('\Textpattern\Tag\Registry')->register(array('class', 'method'), 'tag');
</code>

return: \Textpattern\Tag\Registry
param: callback    $callback The tag callback
param: string|null $tag      The tag name
registerAttr($callback, $tag = null)  line: 85
Registers an attribute.

<code>
Txp::get('\Textpattern\Tag\Registry')->registerAtt(array('class', 'method'), 'tag');
</code>

return: \Textpattern\Tag\Registry
param: callback    $callback The attribute callback
param: string|null $tag      The attribute name
process($tag, array $atts = null, $thing = null)  line: 117
Processes a tag by name.

return: string|bool The tag's results (string) or FALSE on unknown tags
param: string      $tag   The tag
param: array|null  $atts  An array of Attributes
param: string|null $thing The contained statement
processAttr($tag, $atts = null, $thing = null)  line: 145
Processes an attribute by name.

return: string|bool The tag's results (string) or FALSE on unknown tags
param: string      $tag   The attribute
param: string|null $atts  The value of attribute
param: string|null $thing The processed statement
isRegistered($tag line: 163
Checks if a tag is registered.

return: bool TRUE if the tag exists
param: string $tag The tag
isRegisteredAttr($tag line: 175
Checks if an attribute is registered.

return: bool TRUE if the tag exists
param: string $tag The tag
getRegistered($is_attr = false)  line: 187
Lists registered tags.

return: array
param: bool $is_attr tag or attr?
getTag($tag line: 199
Tags getter.

return: callable
param: string $tag

title

Body