setGlobalVariable() (Previous) (Next) setRoot()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

setOption()

setOption() -- Sets the option for the template class

Opis

Sets the option for the template class. Currently it understands the following options:

preserve_data

If set to TRUE, then do not substitute variables and remove unused placeholders in data added through setVariable() and setGlobalVariable(). See also bugs #20199 and #21951. Default is FALSE, for performance reasons.

trim_on_save

Whether to trim extra whitespace from template on cache save. Generally safe to have this on, unless you have <pre></pre> in templates or want to preserve HTML indentantion. Default is TRUE

Parametr

string $option

option name

mixed $value

option value

Zwracana wartość

return SIGMA_OK on success, error object on failure

Uwagi

Ta funkcja nie może być wywołana statycznie.

setGlobalVariable() (Previous) (Next) setRoot()

Download Documentation Last updated: Mon, 02 Jul 2007
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.