Comunitatea PHP Romania
 

 
HTML_Template_Sigma

HTML_Template_Sigma

Table of Contents
Introduction - template syntax -- Creating and editing templates
Introduction - cache -- How Sigma caches the "prepared" templates
constructor HTML_Template_Sigma() -- constructor
addBlock() -- Adds a block to the template
addBlockfile() -- Adds a block contained in the file to the template
blockExists() -- Checks if the block exists in the template
clearVariables() -- Clears the variables
errorMessage() -- Returns a textual error message for an error code
get() -- Returns a block with all replacements done.
getBlockList() -- Returns a list of blocks within a template.
getCurrentBlock() -- Returns the current block name
getPlaceholderList() -- Returns a list of placeholders within a block.
hideBlock() -- Hides the block even if it is not "empty".
loadTemplateFile() -- Loads a template file.
parse() -- Parses the given block.
parseCurrentBlock() -- Parses the current block
placeholderExists() -- Checks whether the placeholder exists
replaceBlock() -- Replaces an existing block with new content.
replaceBlockfile() -- Replaces an existing block with new content from a file.
setCacheRoot() -- Sets the directory to cache "prepared" templates in.
setCallbackFunction() -- Sets a callback function.
setCurrentBlock() -- Sets the name of the current block.
setGlobalVariable() -- Sets a global variable value.
setOption() -- Sets the option for the template class
setRoot() -- Sets the file root for templates.
setTemplate() -- Sets the template.
setVariable() -- Sets a variable value.
show() -- Prints a block with all replacements done.
touchBlock() -- Preserves the block even if empty blocks should be removed.

HTML_Template_Sigma: implementation of Integrated Templates API with template 'compilation' added.

Class Trees for HTML_Template_Sigma()

  • PEAR

    • HTML_Template_Sigma

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Mortgage Calculator | McDonalds | Virtual Pets Blog | Hypnosis | Gas Electricity
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis