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

Class: HTML_Template_Flexy_Compiler_Standard_Tag

Source Location: /HTML_Template_Flexy-1.3.13/HTML/Template/Flexy/Compiler/Standard/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 47]

Parent Compiler for
  • Access: public

Type:   object HTML_Template_Flexy_Compiler


[ Top ]

$element =

[line 92]

The current element to parse..
  • Access: public

Type:   object


[ Top ]

$hasForeach =  false

[line 100]

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

Type:   boolean


[ Top ]



Method Detail

factory   [line 65]

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 ]

getElementPhp   [line 544]

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

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

Parameters:

   $id   — 
   $mergeWithName   — 

[ Top ]

parseAttributeForeach   [line 330]

string parseAttributeForeach( )

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

[ Top ]

parseAttributeIf   [line 385]

string parseAttributeIf( )

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

[ Top ]

parseAttributeIgnore   [line 307]

string parseAttributeIgnore( )

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

[ Top ]

parseTagForm   [line 738]

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 650]

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 ]

parseTagScript   [line 619]

false|PEAR_Error parseTagScript( )

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

[ Top ]

parseTagSelect   [line 722]

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 705]

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 ]

reWriteURL   [line 783]

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 829]

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 ]

toString   [line 112]

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 ]

unHtmlEntities   [line 880]

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 ]


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