Lines Matching refs:options

140      * @param array $options (default: array())
142 public function __construct(array $options = array()) argument
144 if (isset($options['template_class_prefix'])) {
145 if ((string) $options['template_class_prefix'] === '') {
149 $this->templateClassPrefix = $options['template_class_prefix'];
152 if (isset($options['cache'])) {
153 $cache = $options['cache'];
156 $mode = isset($options['cache_file_mode']) ? $options['cache_file_mode'] : null;
163 if (isset($options['cache_lambda_templates'])) {
164 $this->cacheLambdaTemplates = (bool) $options['cache_lambda_templates'];
167 if (isset($options['loader'])) {
168 $this->setLoader($options['loader']);
171 if (isset($options['partials_loader'])) {
172 $this->setPartialsLoader($options['partials_loader']);
175 if (isset($options['partials'])) {
176 $this->setPartials($options['partials']);
179 if (isset($options['helpers'])) {
180 $this->setHelpers($options['helpers']);
183 if (isset($options['escape'])) {
184 if (!is_callable($options['escape'])) {
188 $this->escape = $options['escape'];
191 if (isset($options['entity_flags'])) {
192 $this->entityFlags = $options['entity_flags'];
195 if (isset($options['charset'])) {
196 $this->charset = $options['charset'];
199 if (isset($options['logger'])) {
200 $this->setLogger($options['logger']);
203 if (isset($options['strict_callables'])) {
204 $this->strictCallables = $options['strict_callables'];
207 if (isset($options['delimiters'])) {
208 $this->delimiters = $options['delimiters'];
211 if (isset($options['pragmas'])) {
212 foreach ($options['pragmas'] as $pragma) {