From b99d7a884edabd9e5d297c8117ee7552ca702b96 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 16 Mar 2011 13:01:28 +0100 Subject: Arbeiten am Clientcontroller, Membership in Auth gesetzt --- .../modules/user/controllers/ClientController.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'application/modules/user/controllers/ClientController.php') 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() -- cgit v1.2.3-55-g7522