Example #1
0
 /**
  * Construct Template
  *
  * This method should always be called instead of trying
  * to get a Template object from the normal/default constructor,
  * and is necessary in order to control the return value.
  *
  * @param string $template_set_id the template ID
  *
  * @return object The correct Template object for the given template set
  *
  * @static
  *
  */
 function construct_template($template_set_id)
 {
     $template = new Template($template_set_id);
     $template->override_plugins();
     return $template->get_template_engine_subclass();
 }