Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5202335
Hits Heute: 438
max. Hits (10.07.07): 6964
User Online: 35
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

PHP und MySQL - M+T Training Programmierung . Erfolgreich einsteigen zu Hause und im
PHP und MySQL - M+T Training Programmierung . Erfolgreich einsteigen zu Hause und im

Manuals > PEAR > HTML_Template_Flexy

HTML_Template_Flexy

Table of Contents
Introduction --  What HTML_Template_Flexy can do
Configuration Options --  Setting the defaults for HTML_Template_Flexy
new HTML_Template_Flexy -- constructor
$flexy->compile() -- Converts a template from markup to PHP if required
$flexy->outputObject() -- Merges a controller object with the template and outputs the result
$flexy->bufferedOutputObject() -- Merges a controller object with the template and returns the result
$flexy->getElements() -- Fetch Dynamic HTML Elements from template
new HTML_Template_Flexy_Element -- Class constructor
$element->setValue() -- Utility function to set or store values from common tag types.
$element->setOptions() -- Utility function equivilant to HTML_Select - loadArray **
$element->removeAttributes() -- Removes an attributes
$element->setAttributes() -- Sets the HTML attributes
$element->toHtml -- Output HTML and children
$element->toHtmlnoClose() -- Output Open Tag and any children and not Child tag (designed for use with <form + hidden elements>
$factory->freeze() -- freeze - freeze's an element. - just copies the value to the override.
$factory->fromArray() -- fromArray - builds a set of elements from a key=>value array (eg. DO->toArray()) the second parameter is an optional HTML_Element array to merge it into.
$factory->fromArrayPrefixed() -- fromArrayPrefixed - takes a multi dimensional array, and builds the 'xxx[sss][xx]' => value
$factory->setErrors() -- setErrors - sets the suffix of an element to a value..
$factory->setRequired() -- setRequired - sets the prefix of an element to a value..
 -- creates PHP code to echo a variable
{method(arguments,#quoted arguments#)} -- creates a PHP method call, and echos the results
 -- creates a PHP foreach loop
 -- creates a PHP if statement
 -- closes an if or foreach block
 -- adds an PHP else in an if block
<FORM NAME="name" FLEXYOBJECT="name"> -- configures automatic form elements
<INPUT NAME="name"> -- creates PHP variable for input values
<TEXTAREA NAME="name"> -- creates PHP variable for textarea value
<SELECT NAME="name"> -- creates PHP variable and code for select lists
flexy:if="variable or method()" -- creates a PHP if conditional tag
flexy:foreach="variable,key,value" -- creates a PHP foreach loop using a html attribute
FLEXYSTART -- Start the output, using this tag and it's children.
FLEXYSTARTCHILDREN -- Start the output using it's children.
flexy:ignore -- Prevent Automatic form value replacement

An extremely powerful Tokenizer driven Template engine. Currently in BETA.


Copyright 1998 - 2009 by I.S.U.M.