| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  | <?php | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Smarty Internal Plugin Smarty Template  Base | 
					
						
							|  |  |  |  * This file contains the basic shared methods for template handling | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @package    Smarty | 
					
						
							|  |  |  |  * @subpackage Template | 
					
						
							|  |  |  |  * @author     Uwe Tews | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Class with shared template methods | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |  * @package      Smarty | 
					
						
							|  |  |  |  * @subpackage   Template | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2015-10-29 22:17:35 +01:00
										 |  |  |  * @property Smarty $smarty | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |  * @method Smarty_Internal_TemplateBase setAutoloadFilters(mixed $filters, string $type = null) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase addAutoloadFilters(mixed $filters, string $type = null) | 
					
						
							|  |  |  |  * @method array getAutoloadFilters(string $type = null) | 
					
						
							|  |  |  |  * @local_method Smarty_Internal_TemplateBase registerFilter(string $type, callback $callback, string $name = null) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase unregisterFilter(string $type, mixed $callback) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase unloadFilter(string $type, string $name) | 
					
						
							|  |  |  |  * @method string getDebugTemplate() | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase setDebugTemplate(string $tpl_name) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase setDefaultModifier(mixed $modifiers) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase addDefaultModifier(mixed $modifiers) | 
					
						
							|  |  |  |  * @method array getDefaultModifier() | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase registerDefaultPluginHandler(callback $callback) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase registerResource(string $name, Smarty_Resource $resource_handler) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase unregisterResource(string $name) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase registerCacheResource(string $name, Smarty_CacheResource $resource_handler) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase unregisterCacheResource(string $name) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase unregisterPlugin(string $type, string $name) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase unregisterObject(string $object_name) | 
					
						
							|  |  |  |  * @method object getRegisteredObject(string $object_name) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase registerClass(string $class_name, string $class_impl) | 
					
						
							|  |  |  |  * @method Smarty_Internal_TemplateBase createData(Smarty_Internal_Data $parent = null, string $name = null) | 
					
						
							|  |  |  |  * @method array getTags(mixed $template = null) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |  */ | 
					
						
							|  |  |  | abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2014-12-31 15:44:08 +01:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * Set this if you want different sets of cache files for the same | 
					
						
							|  |  |  |      * templates. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var string | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public $cache_id = null; | 
					
						
							| 
									
										
										
										
											2015-06-19 03:21:52 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-31 15:44:08 +01:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * Set this if you want different sets of compiled files for the same | 
					
						
							|  |  |  |      * templates. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var string | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public $compile_id = null; | 
					
						
							| 
									
										
										
										
											2015-06-19 03:21:52 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-31 15:44:08 +01:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * caching enabled | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var boolean | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public $caching = false; | 
					
						
							| 
									
										
										
										
											2015-06-19 03:21:52 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-31 15:44:08 +01:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * cache lifetime in seconds | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var integer | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public $cache_lifetime = 3600; | 
					
						
							| 
									
										
										
										
											2015-01-01 22:27:45 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-29 14:37:59 +02:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * universal cache | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var array() | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public $_cache = array(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * fetches a rendered Smarty template | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param  string $template         the resource handle of the template file or template object | 
					
						
							|  |  |  |      * @param  mixed  $cache_id         cache id to be used with this template | 
					
						
							|  |  |  |      * @param  mixed  $compile_id       compile id to be used with this template | 
					
						
							|  |  |  |      * @param  object $parent           next higher level of Smarty variables | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @throws Exception | 
					
						
							|  |  |  |      * @throws SmartyException | 
					
						
							|  |  |  |      * @return string rendered template output | 
					
						
							|  |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |     public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null) | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |         $result = $this->_execute($template, $cache_id, $compile_id, $parent, 0); | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |         return $result === null ? ob_get_clean() : $result; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * displays a Smarty template | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param string $template   the resource handle of the template file or template object | 
					
						
							|  |  |  |      * @param mixed  $cache_id   cache id to be used with this template | 
					
						
							|  |  |  |      * @param mixed  $compile_id compile id to be used with this template | 
					
						
							|  |  |  |      * @param object $parent     next higher level of Smarty variables | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public function display($template = null, $cache_id = null, $compile_id = null, $parent = null) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         // display template
 | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |         $this->_execute($template, $cache_id, $compile_id, $parent, 1); | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * test if cache is valid | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @api  Smarty::isCached() | 
					
						
							|  |  |  |      * @link http://www.smarty.net/docs/en/api.is.cached.tpl | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param  null|string|\Smarty_Internal_Template $template   the resource handle of the template file or template object | 
					
						
							|  |  |  |      * @param  mixed                                 $cache_id   cache id to be used with this template | 
					
						
							|  |  |  |      * @param  mixed                                 $compile_id compile id to be used with this template | 
					
						
							|  |  |  |      * @param  object                                $parent     next higher level of Smarty variables | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @return boolean       cache status | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public function isCached($template = null, $cache_id = null, $compile_id = null, $parent = null) | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |         return $this->_execute($template, $cache_id, $compile_id, $parent, 2); | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * fetches a rendered Smarty template | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param  string $template   the resource handle of the template file or template object | 
					
						
							|  |  |  |      * @param  mixed  $cache_id   cache id to be used with this template | 
					
						
							|  |  |  |      * @param  mixed  $compile_id compile id to be used with this template | 
					
						
							|  |  |  |      * @param  object $parent     next higher level of Smarty variables | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |      * @param  string $function  function type 0 = fetch,  1 = display, 2 = isCache | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |      * | 
					
						
							|  |  |  |      * @return mixed | 
					
						
							|  |  |  |      * @throws \Exception | 
					
						
							|  |  |  |      * @throws \SmartyException | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     private function _execute($template, $cache_id, $compile_id, $parent, $function) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $smarty = $this->_objType == 1 ? $this : $this->smarty; | 
					
						
							|  |  |  |         if ($template === null) { | 
					
						
							|  |  |  |             if ($this->_objType != 2) { | 
					
						
							|  |  |  |                 throw new SmartyException($function . '():Missing \'$template\' parameter'); | 
					
						
							|  |  |  |             } else { | 
					
						
							| 
									
										
										
										
											2015-10-29 22:17:35 +01:00
										 |  |  |                 $template = clone $this; | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |             } | 
					
						
							|  |  |  |         } elseif (is_object($template)) { | 
					
						
							|  |  |  |             if (!isset($template->_objType) || $template->_objType != 2) { | 
					
						
							|  |  |  |                 throw new SmartyException($function . '():Template object expected'); | 
					
						
							| 
									
										
										
										
											2015-10-29 22:17:35 +01:00
										 |  |  |             } else { | 
					
						
							|  |  |  |                 /* @var Smarty_Internal_Template $template */ | 
					
						
							|  |  |  |                 $template = clone $template; | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |             } | 
					
						
							|  |  |  |         } else { | 
					
						
							|  |  |  |             // get template object
 | 
					
						
							|  |  |  |             /* @var Smarty_Internal_Template $template */ | 
					
						
							|  |  |  |             $template = $smarty->createTemplate($template, $cache_id, $compile_id, $parent, false); | 
					
						
							|  |  |  |             if ($this->_objType == 1) { | 
					
						
							|  |  |  |                 // set caching in template object
 | 
					
						
							|  |  |  |                 $template->caching = $this->caching; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         // fetch template content
 | 
					
						
							|  |  |  |         $level = ob_get_level(); | 
					
						
							|  |  |  |         try { | 
					
						
							| 
									
										
										
										
											2015-09-14 23:50:20 +02:00
										 |  |  |             $_smarty_old_error_level = | 
					
						
							|  |  |  |                 ($this->_objType == 1 && isset($smarty->error_reporting)) ? error_reporting($smarty->error_reporting) : | 
					
						
							|  |  |  |                     null; | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |             if ($function == 2) { | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |                 if ($template->caching) { | 
					
						
							|  |  |  |                     // return cache status of template
 | 
					
						
							|  |  |  |                     if (!isset($template->cached)) { | 
					
						
							|  |  |  |                         $template->loadCached(); | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                     $result = $template->cached->isCached($template); | 
					
						
							| 
									
										
										
										
											2015-09-01 02:27:22 +02:00
										 |  |  |                     $template->smarty->_cache['isCached'][$template->_getTemplateId()] = $template; | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |                 } else { | 
					
						
							|  |  |  |                     return false; | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |             } else { | 
					
						
							|  |  |  |                 ob_start(); | 
					
						
							| 
									
										
										
										
											2015-10-24 22:43:19 +02:00
										 |  |  |                 $template->_mergeVars(); | 
					
						
							|  |  |  |                 if (!empty(Smarty::$global_tpl_vars)) { | 
					
						
							|  |  |  |                     $template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |                 $result = $template->render(false, $function); | 
					
						
							| 
									
										
										
										
											2015-08-23 01:25:57 +02:00
										 |  |  |             } | 
					
						
							|  |  |  |             if (isset($_smarty_old_error_level)) { | 
					
						
							|  |  |  |                 error_reporting($_smarty_old_error_level); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             return $result; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         catch (Exception $e) { | 
					
						
							|  |  |  |             while (ob_get_level() > $level) { | 
					
						
							|  |  |  |                 ob_end_clean(); | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |             throw $e; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     /** | 
					
						
							|  |  |  |      * Registers plugin to be used in templates | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * | 
					
						
							|  |  |  |      * @api  Smarty::registerPlugin() | 
					
						
							|  |  |  |      * @link http://www.smarty.net/docs/en/api.register.plugin.tpl | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							|  |  |  |      * @param  string   $type       plugin type | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param  string   $name       name of template tag | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * @param  callback $callback   PHP callback to register | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param  bool     $cacheable  if true (default) this function is cache able | 
					
						
							|  |  |  |      * @param  mixed    $cache_attr caching attributes if any | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @return \Smarty|\Smarty_Internal_Template | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * @throws SmartyException              when the plugin tag is invalid | 
					
						
							|  |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function registerPlugin($type, $name, $callback, $cacheable = true, $cache_attr = null) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-10-24 05:02:24 +02:00
										 |  |  |         return $this->ext->registerPlugin->registerPlugin($this, $type, $name, $callback, $cacheable, $cache_attr); | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * load a filter of specified type and name | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @api  Smarty::loadFilter() | 
					
						
							|  |  |  |      * @link http://www.smarty.net/docs/en/api.load.filter.tpl | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param  string $type filter type | 
					
						
							|  |  |  |      * @param  string $name filter name | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @return bool | 
					
						
							|  |  |  |      * @throws SmartyException if filter could not be loaded | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function loadFilter($type, $name) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-10-24 05:02:24 +02:00
										 |  |  |         return $this->ext->loadFilter->loadFilter($this, $type, $name); | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * Registers a filter function
 | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @api  Smarty::registerFilter() | 
					
						
							|  |  |  |      * @link http://www.smarty.net/docs/en/api.register.filter.tpl | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param  string      $type filter type | 
					
						
							|  |  |  |      * @param  callback    $callback | 
					
						
							|  |  |  |      * @param  string|null $name optional filter name | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @return \Smarty|\Smarty_Internal_Template | 
					
						
							|  |  |  |      * @throws \SmartyException | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function registerFilter($type, $callback, $name = null) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-10-24 05:02:24 +02:00
										 |  |  |         return $this->ext->registerFilter->registerFilter($this, $type, $callback, $name); | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Registers object to be used in templates | 
					
						
							|  |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @api  Smarty::registerObject() | 
					
						
							|  |  |  |      * @link http://www.smarty.net/docs/en/api.register.object.tpl | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param  string $object_name | 
					
						
							|  |  |  |      * @param  object $object                     the referenced PHP object to register | 
					
						
							|  |  |  |      * @param  array  $allowed_methods_properties list of allowed methods (empty = all) | 
					
						
							|  |  |  |      * @param  bool   $format                     smarty argument format, else traditional | 
					
						
							|  |  |  |      * @param  array  $block_methods              list of block-methods | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      * | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @return \Smarty|\Smarty_Internal_Template | 
					
						
							|  |  |  |      * @throws \SmartyException | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-09-14 23:50:20 +02:00
										 |  |  |     public function registerObject($object_name, $object, $allowed_methods_properties = array(), $format = true, | 
					
						
							|  |  |  |                                    $block_methods = array()) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-10-24 05:02:24 +02:00
										 |  |  |         return $this->ext->registerObject->registerObject($this, $object_name, $object, $allowed_methods_properties, | 
					
						
							|  |  |  |                                                           $format, $block_methods); | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param boolean $caching | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function setCaching($caching) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |         $this->caching = $caching; | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param int $cache_lifetime | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function setCacheLifetime($cache_lifetime) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |         $this->cache_lifetime = $cache_lifetime; | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param string $compile_id | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function setCompileId($compile_id) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |         $this->compile_id = $compile_id; | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |      * @param string $cache_id | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |     public function setCacheId($cache_id) | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2015-08-17 21:52:32 +02:00
										 |  |  |         $this->cache_id = $cache_id; | 
					
						
							| 
									
										
										
										
											2014-10-18 00:18:11 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2015-02-15 01:45:37 +01:00
										 |  |  | 
 |