Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

PHPTAL.php File Reference

Go to the source code of this file.

Classes

class  PHPTAL
class  HTML_Template_PHPTAL
class  HTML_Template_PHPTAL_Filter
class  HTML_Template_PHPTAL_SourceLocator
class  HTML_Template_PHPTAL_SourceResolver

Enumerations

enum  PT_IP
enum  PHPTAL_VERSION
enum  PHPTAL_MARK
enum  PHPTAL_XML
enum  _PHPTAL_SURROUND
enum  _PHPTAL_REPLACE
enum  _PHPTAL_CONTENT

Variables

 $__d = dirname(__FILE__)
global $_phptal_namespaces = array('TAL', METAL, 'I18N', PHPTAL)
global $_phptal_dictionary
global $_phptal_aliases
global $_phptal_rules_order
global $_phptal_xhtml_empty_tags
global $_phptal_xhtml_boolean_attributes


Enumeration Type Documentation

enum _PHPTAL_CONTENT
 

Definition at line 113 of file PHPTAL.php.

Referenced by PHPTAL_Tag::appendTemplateAttribute().

enum _PHPTAL_REPLACE
 

Definition at line 112 of file PHPTAL.php.

Referenced by PHPTAL_Tag::appendTemplateAttribute().

enum _PHPTAL_SURROUND
 

Definition at line 111 of file PHPTAL.php.

Referenced by PHPTAL_Tag::appendTemplateAttribute().

enum PHPTAL_MARK
 

Definition at line 67 of file PHPTAL.php.

Referenced by PHPTAL_Template::_prepare().

enum PHPTAL_VERSION
 

Definition at line 66 of file PHPTAL.php.

enum PHPTAL_XML
 

This define is used to select the templates output format.

The XML mode does not worry about XHTML specificity and echo every entity in a <entity> format.

Definition at line 91 of file PHPTAL.php.

enum PT_IP
 

Definition at line 35 of file PHPTAL.php.

Referenced by PHPTAL_ES_PHP_Parser::evaluate().


Variable Documentation

$__d = dirname(__FILE__)
 

Definition at line 34 of file PHPTAL.php.

$_phptal_aliases
 

Initial value:

array( TAL:INCLUDE => PHPTAL:INCLUDE, TAL:SRC-INCLUDE=> PHPTAL:SRC-INCLUDE, )

Definition at line 164 of file PHPTAL.php.

Referenced by PHPTAL_Parser::TemplateAttributes().

$_phptal_dictionary
 

Initial value:

array( TAL:DEFINE => _PHPTAL_REPLACE, // set a context variable TAL:CONDITION => _PHPTAL_SURROUND, // print tag content only when condition true TAL:REPEAT => _PHPTAL_SURROUND, // repeat over an iterable TAL:CONTENT => _PHPTAL_CONTENT, // replace tag content TAL:REPLACE => _PHPTAL_REPLACE, // replace entire tag TAL:ATTRIBUTES => _PHPTAL_REPLACE, // dynamically set tag attributes TAL:OMIT-TAG => _PHPTAL_SURROUND, // omit to print tag but not its content TAL:COMMENT => _PHPTAL_SURROUND, // do nothing TAL:ON-ERROR => _PHPTAL_SURROUND, // replace content with this if error occurs METAL:DEFINE-MACRO => _PHPTAL_SURROUND, // define a template macro METAL:USE-MACRO => _PHPTAL_REPLACE, // use a template macro METAL:DEFINE-SLOT => _PHPTAL_SURROUND, // define a macro slot METAL:FILL-SLOT => _PHPTAL_SURROUND, // fill a macro slot PHPTAL:INCLUDE => _PHPTAL_REPLACE, // include an external template PHPTAL:SRC-INCLUDE => _PHPTAL_CONTENT, // include external file without parsing I18N:TRANSLATE => _PHPTAL_CONTENT, // translate some data using GetText package I18N:NAME => _PHPTAL_SURROUND, // prepare a translation name I18N:ATTRIBUTES => _PHPTAL_REPLACE, // translate tag attributes values )

Definition at line 129 of file PHPTAL.php.

Referenced by PHPTAL_Parser::extendZptBlockAttributes(), PHPTAL_Parser::OrderTemplateAttributes(), and PHPTAL_Parser::TemplateAttributes().

$_phptal_namespaces = array('TAL', METAL, 'I18N', PHPTAL)
 

Definition at line 108 of file PHPTAL.php.

Referenced by PHPTAL_Parser::onElementStart(), and PHPTAL_Parser::TemplateAttributes().

$_phptal_rules_order
 

Initial value:

array( TAL:OMIT-TAG => 0, // surround -> $tag->disableHeadFootPrint() TAL:ON-ERROR => 1, // surround METAL:DEFINE-MACRO => 3, // surround TAL:DEFINE => 3, // replace I18N:NAME => 3, // replace I18N:TRANSLATE => 3, // content TAL:CONDITION => 4, // surround TAL:REPEAT => 5, // surround I18N:ATTRIBUTES => 6, // replace TAL:ATTRIBUTES => 6, // replace TAL:REPLACE => 6, // replace METAL:USE-MACRO => 6, // replace PHPTAL:SRC-INCLUDE => 6, // replace PHPTAL:INCLUDE => 6, // replace METAL:DEFINE-SLOT => 6, // replace METAL:FILL-SLOT => 6, // replace TAL:CONTENT => 7, // content TAL:COMMENT => 8, // surround )

Definition at line 186 of file PHPTAL.php.

Referenced by PHPTAL_Parser::OrderTemplateAttributes().

$_phptal_xhtml_boolean_attributes
 

Initial value:

array( compact, nowrap, ismap, declare, noshade, checked, disabled, readonly, multiple, selected, noresize, defer )

Definition at line 253 of file PHPTAL.php.

Referenced by PHPTAL_Attribute_TAL_Attributes::_printAttribute(), PHPTAL_Attribute_I18N_Attributes::_printAttribute(), PHPTAL_Attribute_TAL_Attributes::activate(), PHPTAL_Attribute_I18N_Attributes::activate(), and PHPTAL_Tag::printAttributes().

$_phptal_xhtml_empty_tags
 

Initial value:

array( 'AREA', 'BASE', BASEFONT, 'BR', 'COL', FRAME, 'HR', 'IMG', INPUT, ISINDEX, 'LINK', 'META', PARAM, )

Definition at line 225 of file PHPTAL.php.

Referenced by PHPTAL_Tag::_isXHTMLEmptyElement().


Generated on Tue Jun 29 23:40:11 2004 for Mediawiki by doxygen 1.3.7