previousHTML_Template_IT::parseCurrentBlock() (Previous) (Next) HTML_Template_IT::setRoot()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_Template_IT::setCurrentBlock()

HTML_Template_IT::setCurrentBlock() – set the current block

Synopsis

require_once 'HTML/Template/IT.php';

boolean HTML_Template_IT::setCurrentBlock ( string $block = "__global__" )

Description

Sets the name of the current block, where placeholder should be substituted. The current block can be parsed with HTML_Template_IT::parseCurrentTemplate().

Parameter

  • string $block - block to set, if not given, the complete template is set

Return value

boolean - TRUE, if found and succcessful set, otherwise IT_Error will be returned.

Throws

Possible PEAR_Error values
Error code Error message Reason Solution
IT_BLOCK_NOT_FOUND " Cannot find this block block " The given block does not exists. Check for typing mistakes in the argument.

Note

This function can not be called statically.

previousHTML_Template_IT::parseCurrentBlock() (Previous) (Next) HTML_Template_IT::setRoot()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.