[geeklog-cvs] Auth_Enterprise/Client AEUser.class.php,1.1.1.1,1.2

tony at iowaoutdoors.org tony at iowaoutdoors.org
Wed Jun 16 01:25:23 EDT 2004


Update of /var/cvs/Auth_Enterprise/Client
In directory www:/tmp/cvs-serv26630

Modified Files:
	AEUser.class.php 
Log Message:
Added group related methods and finished the privilege level stuff.

Index: AEUser.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Client/AEUser.class.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** AEUser.class.php	15 Jun 2004 15:19:27 -0000	1.1.1.1
--- AEUser.class.php	16 Jun 2004 05:25:21 -0000	1.2
***************
*** 294,305 ****
      *
      */
!     function listAppPrivilegesByAdmin()
      {
          try {
!             $privArray = $this->clientProvider->listAppPrivilegesByAdmin($this->userName, $this->password);
          } catch (Exception $error) {
              die($error->getMessage());
          }
-         return $privArray;
      }
      
--- 294,341 ----
      *
      */
!     public function listAppPrivilegesByAdmin()
      {
          try {
!             return $this->clientProvider->listAppPrivilegesByAdmin($this->userName, $this->password);
!         } catch (Exception $error) {
!             die($error->getMessage());
!         }
!     }
!     
!     /**
!     * Gets the groups for a given user on behalf of an adminitrator
!     *
!     * @author Tony Bibbs <tony at geeklog.net>
!     * @access public
!     * @param string $userName User to get groups for
!     * @return array Array of AEGroup objects
!     *
!     */
!     public function getUserGroupsByAdmin($userName)
!     {
!         try {
!             return $this->clientProvider->getUserGroupsByAdmin($this->userName, $this->password, $userName);
!         } catch (Exception $e) {
!             die($e->getMessage());
!         }
!     }
!     
!     /**
!     * Sets the application privileges for a given user
!     *
!     * @author Tony Bibbs <tony at geeklog.net>
!     * @access public
!     * @param string $userName Username of user to set groups for
!     * @param array $privArray Array of group objects
!     * @return null
!     *
!     */
!     public function setUserGroupsByAdmin($userName, $groupArray)
!     {
!         try {
!             $this->clientProvider->setUserGroupsByAdmin($this->userName, $this->password, $userName, $groupArray);
          } catch (Exception $error) {
              die($error->getMessage());
          }
      }
      




More information about the geeklog-cvs mailing list