summaryrefslogtreecommitdiffstats
path: root/application/views/helpers/Event.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:29 +0000
commita9b77c01caef9ae7a2c84e2333d28ceb028cf4d3 (patch)
tree4a77cd3e323c37b0e5b3d7578b9718cdf1a89262 /application/views/helpers/Event.php
parentInitial commit. (diff)
downloadicingaweb2-module-eventdb-upstream/1.3.0.tar.xz
icingaweb2-module-eventdb-upstream/1.3.0.zip
Adding upstream version 1.3.0.upstream/1.3.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/views/helpers/Event.php')
-rw-r--r--application/views/helpers/Event.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/application/views/helpers/Event.php b/application/views/helpers/Event.php
new file mode 100644
index 0000000..f61a793
--- /dev/null
+++ b/application/views/helpers/Event.php
@@ -0,0 +1,12 @@
+<?php
+/* Icinga Web 2 | (c) 2016 Icinga Development Team | GPLv2+ */
+
+use Icinga\Module\Eventdb\Event;
+
+class Zend_View_Helper_Event extends Zend_View_Helper_Abstract
+{
+ public function event($data)
+ {
+ return Event::fromData($data);
+ }
+}