summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/log/actions
diff options
context:
space:
mode:
Diffstat (limited to 'apps/admin/modules/log/actions')
-rw-r--r--apps/admin/modules/log/actions/actions.class.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/admin/modules/log/actions/actions.class.php b/apps/admin/modules/log/actions/actions.class.php
new file mode 100644
index 0000000..9eed7c7
--- /dev/null
+++ b/apps/admin/modules/log/actions/actions.class.php
@@ -0,0 +1,46 @@
+<?php
+
+/**
+ * log actions.
+ *
+ * @package mailadmin
+ * @subpackage log
+ * @author Your name here
+ * @version SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
+ */
+class logActions extends autologActions
+{
+ public function executeList()
+ {
+ // pageination
+ if($this->hasRequestParameter("max_per_page"))
+ $this->getUser()->setResultsPerPage($this->getRequestParameter("max_per_page"));
+
+ return parent::executeList();
+ }
+
+ public function executeClear()
+ {
+ if($this->getRequest()->getMethod() == sfRequest::POST)
+ {
+ if($this->getRequestParameter("commit")=="Yes")
+ {
+ LogEntryPeer::doDeleteAll();
+ return $this->redirect("log", "list");
+ }
+
+ }
+
+ return sfView::SUCCESS;
+ }
+
+ public function executeCreate()
+ {
+ return $this->forward404();
+ }
+
+ public function executeEdit()
+ {
+ return $this->forward404();
+ }
+}