Class JsonTemplateModule

Description

Located in /shared/jsontemplate.php (line 639)


	
			
Variable Summary
Method Summary
static void FromFile ( $f, [ $constructor = 'JsonTemplate'])
static void &pointer ()
void CompileTemplate ( $template_str, [ $options = array()], [ $builder = null])
void DoPredicate ( $block,  $context)
void DoSection ( $repeated,  $block,  $context,  $callback)
void DoSubstitute ( $name,  $formatters,  $context, [ $callback = null])
void Execute ( $statements,  $context,  $callback)
void expand ( $template_str,  $data, [ $options = array()])
void FromString ( $string, [ $constructor = 'JsonTemplate'])
void MakeTokenRegex ( $meta_left,  $meta_right)
void SplitMeta ( $meta)
Variables
mixed $formatters = array(
'html' => 'HtmlJsonTemplateFormatter',
'html-attr-value' => 'HtmlAttributeValueJsonTemplateFormatter',
'htmltag' => 'HtmlAttributeValueJsonTemplateFormatter',
'raw' => 'RawJsonTemplateFormatter',
'size' => 'SizeJsonTemplateFormatter',
'url-params' => 'UrlParamsJsonTemplateFormatter',
'url-param-value' => 'UrlParamValueJsonTemplateFormatter',
'pluralize' => 'PluralizeJsonTemplateFormatter',
'AbsUrl' => 'AbsoluteUrlJsonTemplateFormatter',
'str' => 'StringJsonTemplateFormatter',
'default_formatter' => 'StringJsonTemplateFormatter',
)
(line 648)
  • access: public
mixed $if_re = '/^if\s+(@|[A-Za-z0-9_-]+)(\?)?(?:\b(.*?))?\s*$/' (line 643)
  • access: public
mixed $option_names = array('meta','format-char','default-formatter') (line 645)
  • access: public
mixed $option_re = '/^([a-zA-Z\-]+):\s*(.*)/' (line 644)
  • access: public
mixed $predicates = array(
'true' => 'IsTrueJsonTemplatePredicate',
'Debug?' => 'DebugJsonTemplatePredicate'
)
(line 661)
  • access: public
mixed $section_re = '/^(?:(repeated)\s+)?(section)\s+(@|[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)*)(?:\b(.*))?$/' (line 642)
  • access: public
mixed $token_re_cache = array() (line 646)
  • access: public
Methods
static method FromFile (line 890)
static void FromFile ( $f, [ $constructor = 'JsonTemplate'])
  • $f
  • $constructor
static method pointer (line 666)
static void &pointer ()
CompileTemplate (line 737)
void CompileTemplate ( $template_str, [ $options = array()], [ $builder = null])
  • $template_str
  • $options
  • $builder
DoPredicate (line 959)
void DoPredicate ( $block,  $context)
  • $block
  • $context
DoSection (line 971)
void DoSection ( $repeated,  $block,  $context,  $callback)
  • $repeated
  • $block
  • $context
  • $callback
DoSubstitute (line 1016)
void DoSubstitute ( $name,  $formatters,  $context, [ $callback = null])
  • $name
  • $formatters
  • $context
  • $callback
Execute (line 1073)
void Execute ( $statements,  $context,  $callback)
  • $statements
  • $context
  • $callback
expand (line 1107)
void expand ( $template_str,  $data, [ $options = array()])
  • $template_str
  • $data
  • $options
FromString (line 921)
void FromString ( $string, [ $constructor = 'JsonTemplate'])
  • $string
  • $constructor
MakeTokenRegex (line 698)
void MakeTokenRegex ( $meta_left,  $meta_right)
  • $meta_left
  • $meta_right
SplitMeta (line 682)
void SplitMeta ( $meta)
  • $meta

Documentation generated on Sun, 28 Jul 2013 15:07:03 -0400 by phpDocumentor 1.4.4