apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: HTML_Template_Flexy_Compiler_Flexy_Flexy

Source Location: /HTML_Template_Flexy-1.3.13/HTML/Template/Flexy/Compiler/Flexy/Flexy.php

Class Overview


the <flexy:XXXX namespace


Author(s):

Version:

  • $Id: Flexy.php 334846 2014-09-12 04:50:56Z alan_k $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 38]
the <flexy:XXXX namespace

at present it handles <flexy:toJavascript flexy:prefix="Javascript_prefix" javscriptName="PHPvar" .....> <flexy:include src="xxx.htm">

  • Version: $Id: Flexy.php 334846 2014-09-12 04:50:56Z alan_k $


[ Top ]


Class Variables

$compiler =

[line 48]

Parent Compiler for
  • Access: public

Type:   object HTML_Template_Flexy_Compiler


[ Top ]

$element =

[line 57]

The current element to parse..
  • Access: public

Type:   object


[ Top ]



Method Detail

functionToString   [line 310]

void functionToString( object token $element)

Handler for User defined functions in templates..

<flexy:function name="xxxxx">.... </flexy:block> // equivilant to function xxxxx() { <flexy:function call="{xxxxx}">.... </flexy:block> // equivilant to function {$xxxxx}() { <flexy:function call="xxxxx">.... </flexy:block> // equivilant to function {$xxxxx}() {

This will not handle nested blocks initially!! (and may cause even more problems with if /foreach stuff..!!

  • Access: public

Parameters:

object token   $element   —  to convert into a element.

[ Top ]

includeToString   [line 178]

void includeToString( $element)

include handler

<flexy:include src="test.html"> <flexy:include src="{test}"> <flexy:include src="{test}.html">

or include without parsing (does not support {xxx} args ) <flexy:include src="test.html" type="raw">

or to include a file as a js value = used by javascript templates <flexy:include src="test.html" type="json" name="my_js_variable">

  • See: parent::toString()

Parameters:

   $element   — 

[ Top ]

partialToString   [line 368]

void partialToString( $element)

- A partial is a subtemplate to which you can pass variables.

  • You can define variables for the partial as xml attributes
  • You can provide context for the variables by adhering to the convention 'subtemplateVarName="templateVarName"'
  • See example below:
<flexy:partial src="test.html" subtemplateVar1="var1" subtemplateVar2="object.var2" subtemplateVar3="#literal1#" />


Parameters:

   $element   — 

[ Top ]

toElement   [line 290]

object HTML_Template_Flexy_Element toElement( object token $element)

Convert flexy tokens to HTML_Template_Flexy_Elements.
  • Access: public

Parameters:

object token   $element   —  to convert into a element.

[ Top ]

toJavascriptToString   [line 91]

void toJavascriptToString( $element)

toJavascript handler <flexy:toJavascript flexy:prefix="some_prefix_" javascriptval="php.val" ....>
  • See: parent::toString()

Parameters:

   $element   — 

[ Top ]

toJSONToString   [line 123]

void toJSONToString( $element)

toJavascript handler <flexy:toJSON javascriptval="php.val" ....>
  • See: parent::toString()

Parameters:

   $element   — 

[ Top ]

toString   [line 70]

void toString( $element)

toString - display tag, attributes, postfix and any code in attributes.

Relays into namspace::method to get results..

  • See: parent::toString()

Parameters:

   $element   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:59:57 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.