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

Class: HTML_Template_Flexy_Token_Text

Source Location: /HTML_Template_Flexy-0.4.2/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::childrentoString()
generate HTML from children after doing flexy manipulations..
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::toString()
generate HTML after doing flexy manipulations..
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 136]

List of argument tokens.
  • Access: public

Type:   array


[ Top ]



Method Detail

backSearch   [line 145]

none backSearch( )

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

[ Top ]

forwardSearch   [line 194]

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

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 ]

toString   [line 59]

void toString( )

toString - generate PHP code this calls gettext on the string prior to outputing it.

does weird things to try and make sensible strings for gettext

  • See: parent::toString(), $this->pullState()

Overrides HTML_Template_Flexy_Token::toString() (generate HTML after doing flexy manipulations..)
[ Top ]


Documentation generated on Fri, 30 Apr 2004 23:49:40 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.