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

Class: HTML_Template_Flexy_Token_Tag

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

Class Overview

HTML_Template_Flexy_Token
   |
   --HTML_Template_Flexy_Token_Tag

A standard HTML Tag = eg. Table/Body etc.


Author(s):

Variables

Methods


Child classes:

HTML_Template_Flexy_Token_EndTag
A standard HTML Tag = eg. Table/Body etc.

Inherited Variables

Inherited Methods

Class: HTML_Template_Flexy_Token

HTML_Template_Flexy_Token::buildChildren()
Build the child array for each element.
HTML_Template_Flexy_Token::buildTokens()
Run a Tokenizer and Store its results It should build a DOM Tree of the HTML
HTML_Template_Flexy_Token::compile()
compile to String (vistor method) replaces toString
HTML_Template_Flexy_Token::compileChildren()
compile children (visitor approach).
HTML_Template_Flexy_Token::dump()
dump to text ATM
HTML_Template_Flexy_Token::factory()
factory a Token
HTML_Template_Flexy_Token::findVar()
do the stack lookup on the variable this relates to flexy t relates to the object being parsed.
HTML_Template_Flexy_Token::pullState()
tell the generator you are entering a block
HTML_Template_Flexy_Token::pushState()
tell the generator you are entering a block
HTML_Template_Flexy_Token::pushVar()
add a variable to the stack.
HTML_Template_Flexy_Token::scopeVarsToArrayString()
get the scoped variables as an array of strings so that it can be passed to child templates...
HTML_Template_Flexy_Token::setValue()
Standard Value iterpretor
HTML_Template_Flexy_Token::toVar()
get the real variable name formated x.y.z => $this->x->y->z if a variable is in the stack it return $x->y->z

Class Details

[line 33]
A standard HTML Tag = eg. Table/Body etc.
  • Abstract: This is the generic HTML tag a simple one will have some attributes and a name.


[ Top ]


Class Variables

$attributes = array()

[line 65]

Associative array of attributes. (original case)

key is the left, value is the right.. note: values are raw (eg. include "") valuse can be text = standard array (a parsed value with flexy tags in) object (normally some PHP code that generates the key as well..)

  • Access: public

Type:   array


[ Top ]

$close =

[line 102]

Alias to closing tag (built externally).

used to add < ? } ? > code to dynamic tags.

  • Access: public

Type:   object alias
Overrides:   Array


[ Top ]

$oTag =  ''

[line 48]

HTML Tag: (original case)
  • Access: public

Type:   string


[ Top ]

$postfix =  ''

[line 85]

postfix tokens used to add code to end of tags "<xxxx>here....children .. <close tag>"
  • Access: public

Type:   array


[ Top ]

$prefix =  ''

[line 93]

prefix tokens used to add code to beginning of tags TODO "here<xxxx>....children .. <close tag>"
  • Access: public

Type:   array


[ Top ]

$tag =  ''

[line 41]

HTML Tag: eg. Body or /Body - uppercase
  • Access: public

Type:   string


[ Top ]

$ucAttributes = array()

[line 74]

Associative array of attributes ucase to Original Case for attributes..
  • Access: public

Type:   array


[ Top ]



Method Detail

clearAttribute   [line 204]

array clearAttribute( $string)

clearAttributes = removes an attribute from the object.

Parameters:

   $string   — 

[ Top ]

getAttribute   [line 137]

string getAttribute( $key)

getAttribute = reads an attribute value and strips the quotes

TODO does not handle values with flexytags in them

  • Return: (
  • Access: public

Parameters:

   $key   — 

[ Top ]

getAttributes   [line 186]

array getAttributes( )

getAttributes = returns all the attributes key/value without quotes

[ Top ]

setValue   [line 111]

void setValue( $value)

Setvalue - gets name, attribute as an array
  • See: parent::setValue()

Overrides HTML_Template_Flexy_Token::setValue() (Standard Value iterpretor)

Parameters:

   $value   — 

[ Top ]

toString   [line 214]

void toString( )

used to get the contents..

Overridden in child classes as:

HTML_Template_Flexy_Token_EndTag::toString()
used to get the contents..

[ Top ]


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