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__"])

Описание

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

Параметр

Возвращаемое значение

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

Throws

Таблица 42-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
IT_BLOCK_NOT_FOUND " Cannot find this block block " The given block does not exists. Check for typing mistakes in the argument.

Заметка

Эта функция не должна вызываться статически.

См. также

HTML_Template_it::parseCurrentBlock(),


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ