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

Class: HTML_Template_Flexy_Token_Text

Source Location: /HTML_Template_Flexy-0.8.0/Flexy/Token/Text.php

Class Overview

HTML_Template_Flexy_Token
   |
   --HTML_Template_Flexy_Token_Text

Class to Text - implements gettext support.


Variables

Methods


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::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::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 49]
Class to Text - implements gettext support.


[ Top ]


Class Variables

$argTokens = array()

[line 61]

List of argument tokens.
  • Access: public

Type:   array


[ Top ]



Method Detail

backSearch   [line 70]

none backSearch( )

Search backwards for whitespace and flexy tags to add to string.
  • Access: public

[ Top ]

forwardSearch   [line 119]

int forwardSearch( int $max)

Search forwards for whitespace and flexy tags to add to string.
  • Return: - id of next tag.
  • Access: public

Parameters:

int   $max   —  - id of last tag

[ Top ]

isWord   [line 155]

boolean isWord( )

Simple check to see if this piece of text is a word so that gettext and the merging tricks dont try
  • merge white space with a flexy tag
  • gettext doesnt translate   etc.

  • Return: true if this is a word
  • Access: public

[ Top ]


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