summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/SessionController.php
diff options
context:
space:
mode:
authorSebastian Schmelzer2012-01-11 19:22:47 +0100
committerSebastian Schmelzer2012-01-11 19:22:47 +0100
commit4123c100e127baa70da62990daa88bde3071fe5e (patch)
treeb1ee255528fd75a83c97c3988ff9c04dd95e6a62 /application/modules/user/controllers/SessionController.php
parentadd favico (diff)
downloadpbs2-4123c100e127baa70da62990daa88bde3071fe5e.tar.gz
pbs2-4123c100e127baa70da62990daa88bde3071fe5e.tar.xz
pbs2-4123c100e127baa70da62990daa88bde3071fe5e.zip
make notifier call static
Diffstat (limited to 'application/modules/user/controllers/SessionController.php')
-rw-r--r--application/modules/user/controllers/SessionController.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/application/modules/user/controllers/SessionController.php b/application/modules/user/controllers/SessionController.php
index f90845a..cd0b27f 100644
--- a/application/modules/user/controllers/SessionController.php
+++ b/application/modules/user/controllers/SessionController.php
@@ -1,23 +1,23 @@
<?php
/*
* Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
-* This program is free software distributed under the GPL version 2.
-* See http://gpl.openslx.org/
-*
-* If you have any feedback please consult http://feedback.openslx.org/ and
-* send your suggestions, praise, or complaints to feedback@openslx.org
-*
-* General information about OpenSLX can be found at http://openslx.org/
-*/
+ * This program is free software distributed under the GPL version 2.
+ * See http://gpl.openslx.org/
+ *
+ * If you have any feedback please consult http://feedback.openslx.org/ and
+ * send your suggestions, praise, or complaints to feedback@openslx.org
+ *
+ * General information about OpenSLX can be found at http://openslx.org/
+ */
class User_SessionController extends Zend_Controller_Action {
private $membership;
+
public function init() {
if (Zend_Auth::getInstance()->hasIdentity()) {
$userIDsNamespace = Zend_Session::namespaceGet('userIDs');
if($userIDsNamespace['membershipID'] == '') {
- $pbsNotifier = new Pbs_Notifier();
- echo $pbsNotifier->notify('No membershipID set', 'forbidden');
+ echo Pbs_Notifier::notify('No membershipID set', 'forbidden');
}
$membershipMapper = new Application_Model_MembershipMapper();
@@ -107,9 +107,8 @@ class User_SessionController extends Zend_Controller_Action {
public function searchAction() {
$this->_redirect('/user/session/index/search/'.($_GET['search']));
}
-
-
}
+
function sortFunc($func_a, $func_b) {
if($func_a->getID() == $func_b->getID()) { return 0; }
return ($func_a->getID() < $func_b->getID()) ? 1 : -1;