[icinga-checkins] icinga.org: icinga-web/cdoebler/default: * Added stub for a tactical overview cronk

git at icinga.org git at icinga.org
Tue Jan 19 16:09:43 CET 2010


Module: icinga-web
Branch: cdoebler/default
Commit: cc247176928dddd51e8ccd17bbb0536667b85226
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=cc247176928dddd51e8ccd17bbb0536667b85226

Author: Marius Hein <marius.hein at netways.de>
Date:   Tue Jan 19 14:04:25 2010 +0100

* Added stub for a tactical overview cronk

---

 .../System/TacticalOverviewAction.class.php        |   23 ++++++++++++++++++++
 .../Cronks/cache/System/TacticalOverview.xml       |    7 ++++++
 .../Cronks/validate/System/TacticalOverview.xml    |   13 +++++++++++
 .../System/TacticalOverviewSuccessView.class.php   |   13 +++++++++++
 4 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/actions/System/TacticalOverviewAction.class.php b/app/modules/Cronks/actions/System/TacticalOverviewAction.class.php
new file mode 100644
index 0000000..31f8595
--- /dev/null
+++ b/app/modules/Cronks/actions/System/TacticalOverviewAction.class.php
@@ -0,0 +1,23 @@
+<?php
+
+class Cronks_System_TacticalOverviewAction extends ICINGACronksBaseAction
+{
+	/**
+	 * Returns the default view if the action does not serve the request
+	 * method used.
+	 *
+	 * @return     mixed <ul>
+	 *                     <li>A string containing the view name associated
+	 *                     with this action; or</li>
+	 *                     <li>An array with two indices: the parent module
+	 *                     of the view to be executed and the view to be
+	 *                     executed.</li>
+	 *                   </ul>
+	 */
+	public function getDefaultViewName()
+	{
+		return 'Success';
+	}
+}
+
+?>
\ No newline at end of file
diff --git a/app/modules/Cronks/cache/System/TacticalOverview.xml b/app/modules/Cronks/cache/System/TacticalOverview.xml
new file mode 100644
index 0000000..b60a7fa
--- /dev/null
+++ b/app/modules/Cronks/cache/System/TacticalOverview.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ae:configurations xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0" xmlns="http://agavi.org/agavi/config/parts/caching/1.0">
+	<ae:configuration>
+		<caching>
+		</caching>
+	</ae:configuration>
+</ae:configurations>
diff --git a/app/modules/Cronks/templates/System/TacticalOverviewSuccess.php b/app/modules/Cronks/templates/System/TacticalOverviewSuccess.php
new file mode 100644
index 0000000..e69de29
diff --git a/app/modules/Cronks/validate/System/TacticalOverview.xml b/app/modules/Cronks/validate/System/TacticalOverview.xml
new file mode 100644
index 0000000..bfa516d
--- /dev/null
+++ b/app/modules/Cronks/validate/System/TacticalOverview.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ae:configurations
+	xmlns="http://agavi.org/agavi/config/parts/validators/1.0"
+	xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"
+	parent="%core.module_dir%/Cronks/config/validators.xml"
+>
+	<ae:configuration>
+		
+		<validators>
+		</validators>
+		
+	</ae:configuration>
+</ae:configurations>
diff --git a/app/modules/Cronks/views/System/TacticalOverviewSuccessView.class.php b/app/modules/Cronks/views/System/TacticalOverviewSuccessView.class.php
new file mode 100644
index 0000000..d60eeb8
--- /dev/null
+++ b/app/modules/Cronks/views/System/TacticalOverviewSuccessView.class.php
@@ -0,0 +1,13 @@
+<?php
+
+class Cronks_System_TacticalOverviewSuccessView extends ICINGACronksBaseView
+{
+	public function executeHtml(AgaviRequestDataHolder $rd)
+	{
+		$this->setupHtml($rd);
+
+		$this->setAttribute('_title', 'System.TacticalOverview');
+	}
+}
+
+?>
\ No newline at end of file





More information about the icinga-checkins mailing list