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() – Setzt den aktuell verwendeten Block

Synopsis

require_once 'HTML/Template/IT.php';

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

Description

Setzt den aktuell verwendeten Block. Dies ist insbesondere in Verbindung mit HTML_Template_IT::parseCurrentTemplate() sinnvoll

Parameter

  • string $block - Den zu benützenden Block. Falls kein Block angeben wurde, wird das gesamte Template verwendet.

Return value

boolean - Falls der gegebenen Block gefunden wurde und als aktueller Block gesetzt werden konnte, wird TRUE zurück gegeben. Andernfalls wird ein IT_Error zurück gegeben.

Throws

Possible PEAR_Error values
Error code Error message Reason Solution
IT_BLOCK_NOT_FOUND " Cannot find this block block " Der angegebene Block existiert im geladenen Template nicht. Überprüfen Sie, ob der Blockname richtig geschrieben ist.

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.