/** * set caching template and its parameters * @param string $name * @param string $params */ public static function setTemplate($name = '', $params = '') { if (!self::$tmpl) { self::$tmpl = new stdClass(); } if ($name && $params) { self::$tmpl->template = $name; self::$tmpl->params = $params; } }