aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/sidebar/VueWidget.php
blob: f4f0583acc2466d98374ab47e65ecdfe934ebf1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * This widget type delegates all rendering of the widget to vuejs.
 *
 * @author  Elmar Ludwig
 * @license GPL2 or any later version
 * @since   Stud.IP 5.0
 */
class VueWidget extends Widget
{
    /**
     * Constructs the widget with the given id on the element.
     */
    public function __construct($id)
    {
        $this->id = $id;
        $this->layout = 'widgets/vue-widget';
        $this->forced_rendering = true;
    }
}