summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers
diff options
context:
space:
mode:
authorSimon2011-03-16 13:01:28 +0100
committerSimon2011-03-16 13:01:28 +0100
commitb99d7a884edabd9e5d297c8117ee7552ca702b96 (patch)
tree185a8b8a4cdbb868380a1549f0e540c4174f5dae /application/modules/user/controllers
parentcontroller und actions für Client und Pool hinzugefügt (diff)
downloadpbs2-b99d7a884edabd9e5d297c8117ee7552ca702b96.tar.gz
pbs2-b99d7a884edabd9e5d297c8117ee7552ca702b96.tar.xz
pbs2-b99d7a884edabd9e5d297c8117ee7552ca702b96.zip
Arbeiten am Clientcontroller, Membership in Auth gesetzt
Diffstat (limited to 'application/modules/user/controllers')
-rw-r--r--application/modules/user/controllers/AuthController.php1
-rw-r--r--application/modules/user/controllers/ClientController.php18
-rw-r--r--application/modules/user/controllers/IndexController.php21
3 files changed, 32 insertions, 8 deletions
diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php
index 4721616..76dc243 100644
--- a/application/modules/user/controllers/AuthController.php
+++ b/application/modules/user/controllers/AuthController.php
@@ -11,6 +11,7 @@ class User_AuthController extends Zend_Controller_Action
public function indexAction()
{
// action body
+ $_SESSION['membershipID'] = 1;
}
diff --git a/application/modules/user/controllers/ClientController.php b/application/modules/user/controllers/ClientController.php
index cb139d5..a8d0d3d 100644
--- a/application/modules/user/controllers/ClientController.php
+++ b/application/modules/user/controllers/ClientController.php
@@ -2,15 +2,29 @@
class User_ClientController extends Zend_Controller_Action
{
-
+ private $this->membership;
public function init()
{
/* Initialize action controller here */
+ $membershipMapper = new Application_Model_MembershipMapper();
+ $this->membership = new Application_Model_Membership();
+ $membershipMapper->find($_SESSION['membershipID'],$this->membership);
}
public function indexAction()
{
- // action body
+ // TODO: ACL: is he athorized to see this ?
+
+ // Get the Clients which booted with a bootiso of this group
+ $groupID = $this->membership->getGroupID();
+ $bootisoMapper = new Application_Model_BootIsoMapper();
+ $bootisos = $bootisoMapper->findby('groupID',$groupID);
+
+ $sessions
+
+
+
+
}
public function addclientAction()
diff --git a/application/modules/user/controllers/IndexController.php b/application/modules/user/controllers/IndexController.php
index d39ff21..8b295e0 100644
--- a/application/modules/user/controllers/IndexController.php
+++ b/application/modules/user/controllers/IndexController.php
@@ -2,17 +2,26 @@
class User_IndexController extends Zend_Controller_Action
{
-
public function init()
{
/* Initialize action controller here */
}
- public function indexAction()
- {
-
+ public function indexAction()
+ {
+ if (!Zend_Auth::getInstance()->hasIdentity()) {
+ $this->view->text = 'Your not logged in, please log in first <a href="/user/auth/">here</a>.';
+ }
+ else{
+ $this->view->text = "You're Welcome";
+ $links = array(
+ '/user/person' => 'Change your Details',
+ '/user/person/request' => 'Request Membership in a Group',
+ '/user/config' => 'Create your own Configuration',
+ '/user/bootmenu' => 'Create your Bootmenu',
+ );
+ }
+ $this->view->links = $links;
}
-
-
}