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

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

replaceBlock()

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

Description

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.

Paramètres

chaîne de caractères $block

name of a block to replace

chaîne de caractères $template

new content

booléen $keepContent

TRUE if the parsed contents of the block should be kept

Valeur retournée

return SIGMA_OK on success, error object on failure

Note

Cette fonction ne peut pas être appelée de façon statique.

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

Download Documentation Last updated: Sun, 28 Sep 2008
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.