placeholderExists() (Previous) (Next) replaceBlockfile()

Last updated: Sun, 16 May 2004

replaceBlock()

replaceBlock() -- Replaces an existing block with new content.

Описание

Replaces an existing block with new content. This function will replace a block of the template and all blocks contained in it and add a new block instead. This means you can dynamically change your template.

Sigma analyses the way you've nested blocks and knows which block belongs into another block. This nesting information helps to make the API short and simple. Replacing blocks does not only mean that Sigma has to update the nesting information (relatively time consuming task) but you have to make sure that you do not get confused due to the template change yourself.

Параметр

string $block

name of a block to replace

string $template

new content

boolean $keepContent

TRUE if the parsed contents of the block should be kept

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

return SIGMA_OK on success, error object on failure

Заметка

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

placeholderExists() (Previous) (Next) replaceBlockfile()

Download Documentation Last updated: Sun, 16 May 2004
Hosting
HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ