setOption()

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

Synopsis

require_once 'HTML/Template/Sigma.php';

mixed HTML_Template_Sigma::setOption (string $option, mixed $value)

Описание

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

Параметр

string $option

option name

mixed $value

option value

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

return SIGMA_OK on success, error object on failure

Throws

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

Error codeError messageReasonSolution
SIGMA_UNKNOWN_OPTIONUnknown option '$option'$option is not known to SigmaCheck the option name spelling

Заметка

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


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