* @license GPL2 or any later version * @since Stud.IP 4.0 */ class TemplateWidget extends SidebarWidget { protected $forced_rendering = true; /** * Constructor of the widget. * * @param String $title Title of the widget * @param Flexi_Template $template Template for the widget * @param array $variables Associated variables for the template */ public function __construct($title, Flexi_Template $template, array $variables = []) { parent::__construct(); $this->title = $title; $this->template = $template; $this->template->set_attributes($variables); } }