comanage-dev - [comanage-dev] r435 - registry/trunk/app/Controller
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r435 - registry/trunk/app/Controller
- Date: Tue, 5 Feb 2013 15:21:58 -0500
Author: marie
Date: 2013-02-05 15:21:58 -0500 (Tue, 05 Feb 2013)
New Revision: 435
Modified:
registry/trunk/app/Controller/CoGroupsController.php
Log:
co477 refactor redirects
Modified: registry/trunk/app/Controller/CoGroupsController.php
===================================================================
--- registry/trunk/app/Controller/CoGroupsController.php 2013-02-05
10:21:00 UTC (rev 434)
+++ registry/trunk/app/Controller/CoGroupsController.php 2013-02-05
20:21:58 UTC (rev 435)
@@ -41,6 +41,21 @@
public $requires_co = true;
/**
+ * Callback to set relevant tab to open when redirecting to another page
+ * - precondition:
+ * - postcondition: Auth component is configured
+ * - postcondition:
+ *
+ * @since COmanage Registry v0.8
+ */
+
+ function beforeFilter() {
+ $this->redirectTab = 'group';
+
+ parent::beforeFilter();
+ }
+
+ /**
* Perform any dependency checks required prior to a write (add/edit)
operation.
* This method is intended to be overridden by model-specific controllers.
* - postcondition: Session flash message updated (HTML) or HTTP status
returned (REST)
@@ -133,20 +148,7 @@
return(true);
}
- /**
- * Delete an Group Object
- * - precondition: <id> must exist
- * - postcondition: Session flash message updated (HTML) or HTTP status
returned (REST)
- * - postcondition: On success, all related data (any table with an
<object>_id column) is deleted
- *
- * @since COmanage Registry v0.7
- * @param integer Object identifier (eg: cm_co_groups:id) representing
object to be deleted
- */
- function delete($id) {
- $this->redirectTab = 'group';
- parent::delete($id);
- }
/**
* Update a CO Group.
@@ -428,18 +430,4 @@
parent::view($id);
}
- /**
- * Perform a redirect back to the controller's default view.
- * - postcondition: Redirect generated
- *
- * @since COmanage Registry v0.7
- */
-
- function performRedirect() {
-
- $this->redirectTab = 'group';
-
- parent::performRedirect();
- }
-
}
- [comanage-dev] r435 - registry/trunk/app/Controller, svnlog, 02/05/2013
Archive powered by MHonArc 2.6.16.