OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
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..
{variable} -- creates PHP code to echo a variable
{method(arguments,#quoted arguments#)} -- creates a PHP method call, and echos the results
{foreach:variable,key,value} -- creates a PHP foreach loop
{if:variable} -- creates a PHP if statement
{end:} -- closes an if or foreach block
{else:} -- adds an PHP else in an if block
<FORM NAME="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
flexy:start="here" -- Start the output, using this tag and it's children.
flexy:startchildren="here" -- Start the output using it's children.
flexy:ignore="yes" -- Prevent Automatic form value replacement

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

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting

Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005