1 | <?php namespace Anomaly\DashboardModule\Dashboard; |
||
16 | class DashboardModel extends DashboardDashboardsEntryModel implements DashboardInterface |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * The active flag. |
||
21 | * |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $active = false; |
||
25 | |||
26 | /** |
||
27 | * Eager loaded relations. |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $with = [ |
||
32 | 'translations', |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * Get the active flag. |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function isActive() |
||
44 | |||
45 | /** |
||
46 | * Set the active flag. |
||
47 | * |
||
48 | * @param $active |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setActive($active) |
||
57 | |||
58 | /** |
||
59 | * Get the slug. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getSlug() |
||
67 | |||
68 | /** |
||
69 | * Get the name. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getName() |
||
77 | |||
78 | /** |
||
79 | * Get the allowed roles. |
||
80 | * |
||
81 | * @return RoleCollection |
||
82 | */ |
||
83 | public function getAllowedRoles() |
||
87 | |||
88 | /** |
||
89 | * Get the related widgets. |
||
90 | * |
||
91 | * @return \Anomaly\Streams\Platform\Entry\EntryPresenter|mixed |
||
92 | */ |
||
93 | public function getWidgets() |
||
97 | |||
98 | /** |
||
99 | * Return the widget relation. |
||
100 | * |
||
101 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
102 | */ |
||
103 | public function widgets() |
||
107 | } |
||
108 |