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

Class: HTML_Template_Flexy_Compiler_Flexy_Tag

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

Class Overview


Compiler That deals with standard HTML Tag output.


Author(s):

Version:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
Compiler That deals with standard HTML Tag output.

Since it's pretty complex it has it's own class. I guess this class should deal with the main namespace and the parent (standard compiler can redirect other namespaces to other classes.

one instance of these exists for each namespace.

  • Version: $Id: Tag.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 128]

The current element to parse..
  • Access: public

Type:   object


[ Top ]

$hasForeach =  false

[line 136]

Flag to indicate has attribute flexy:foreach (so you cant mix it with flexy:if!)
  • Access: public

Type:   boolean


[ Top ]



Method Detail

elementUsesDynamic   [line 1302]

boolean elementUsesDynamic( HTML_Template_Flexy_Token $e)

Recursively search for any flexy:if flexy:foreach or {xxxx} tags inside tags..
  • Return: true if it finds a dynamic tag.
  • Access: public

Parameters:

HTML_Template_Flexy_Token   $e   —  element to check.

[ Top ]

factory   [line 66]

object tag &factory( string $type, object HTML_Template_Flexy_Compiler &$compiler)

Factory method to create Tag Handlers

$type = namespace eg. <flexy:toJavascript loads Flexy.php the default is this... (eg. Tag)

  • Return: compiler
  • Access: public

Parameters:

string   $type   —  Namespace handler for element.
object HTML_Template_Flexy_Compiler   &$compiler   — 

[ Top ]

fileExistsInPath   [line 107]

boolean fileExistsInPath( string $filename)

Check that a file exists in the "include_path"
  • Return: true if it is in there.
  • Access: public

Parameters:

string   $filename   —  Filename

[ Top ]

getElementPhp   [line 722]

string getElementPhp( $id, [ $mergeWithName = false], [ $varsOnly = false])

produces the code for dynamic elements
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

Parameters:

   $id   — 
   $mergeWithName   — 
   $varsOnly   — 

[ Top ]

parseAttributeForeach   [line 479]

string parseAttributeForeach( )

Reads an flexy:foreach attribute -
  • Return: to add to output.
  • Access: public

[ Top ]

parseAttributeIf   [line 550]

string parseAttributeIf( )

Reads an flexy:if attribute -
  • Return: to add to output.
  • Access: public

[ Top ]

parseAttributeIgnore   [line 456]

string parseAttributeIgnore( )

Reads an flexy:foreach attribute -
  • Return: to add to output.
  • Access: public

[ Top ]

parseTagForm   [line 1076]

string parseTagForm( )

Reads an Form tag - and set up the element object header etc.
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

[ Top ]

parseTagInput   [line 967]

string parseTagInput( )

Reads an Input tag - build a element object for it
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

[ Top ]

parseTagLabel   [line 1109]

string parseTagLabel( )

Deal with Label - build a element object for it (unless flexyignore is set)
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

[ Top ]

parseTagScript   [line 931]

false|PEAR_Error parseTagScript( )

Reads an Script tag - check if PHP is allowed.
  • Access: public

[ Top ]

parseTagSelect   [line 1060]

string parseTagSelect( )

Deal with Selects - build a element object for it (unless flexyignore is set)
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

[ Top ]

parseTagTextArea   [line 1039]

string parseTagTextArea( )

Deal with a TextArea tag - build a element object for it
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

[ Top ]

parseXulTag   [line 1281]

string parseXulTag( )

Deal with XUL tags
  • Return: | false = html output or ignore (just output the tag)
  • Access: public

[ Top ]

reWriteURL   [line 1152]

none reWriteURL( string $which)

reWriteURL - can using the config option 'url_rewrite' format "from:to,from:to" only handle left rewrite.

so "/images:/myroot/images" would change /images/xyz.gif to /myroot/images/xyz.gif /images/stylesheet/imagestyles.css to /myroot/images/stylesheet/imagestyles.css note /imagestyles did not get altered. will only work on strings (forget about doing /images/{someimage}

  • Access: public

Parameters:

string   $which   —  attribute to rewrite

[ Top ]

toElement   [line 1198]

object HTML_Template_Flexy_Element toElement( object token $element, [ $stripspaces = false])

Convert flexy tokens to HTML_Template_Flexy_Elements.
  • Access: public

Parameters:

object token   $element   —  to convert into a element.
   $stripspaces   — 

[ Top ]

toString   [line 145]

void toString( $element)

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

Note first thing it does is call any parseTag Method that exists..

  • See: parent::toString()

Parameters:

   $element   — 

[ Top ]

toStringChildren   [line 367]

none? toStringChildren( &$element, &$ret)

compile children to string.
  • Return: or pear error.

Parameters:

   &$element   — 
   &$ret   — 

[ Top ]

toStringCloseTag   [line 402]

none? toStringCloseTag( &$element, &$ret)

compile closing tag to string.
  • Return: or pear error.

Parameters:

   &$element   — 
   &$ret   — 

[ Top ]

toStringOpenTag   [line 257]

none? toStringOpenTag( &$element, &$ret)

convert a tag into compiled version
  • Return: or pear error.

Parameters:

   &$element   — 
   &$ret   — 

[ Top ]

unHtmlEntities   [line 1258]

string unHtmlEntities( mixed $in)

do the reverse of htmlspecialchars on an attribute..

copied from get-html-translation-table man page

  • Return: return
  • See: see also methods.....
  • Access: public

Parameters:

mixed   $in   —  from attribute values

[ Top ]

unHtmlEntitiesChar   [line 1269]

void unHtmlEntitiesChar( $ar)


Parameters:

   $ar   — 

[ Top ]


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