[geeklog-cvs] Auth_Enterprise/Enterprise/Client User.php,1.1,1.2 Localhost.php,1.1,1.2
jellybob at iowaoutdoors.org
jellybob at iowaoutdoors.org
Sun Jul 11 23:01:55 EDT 2004
Update of /var/cvs/Auth_Enterprise/Enterprise/Client
In directory www:/tmp/cvs-serv10411/Enterprise/Client
Modified Files:
User.php Localhost.php
Log Message:
More adding of the listAdminGroupsByAdmin() method
Index: Localhost.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Enterprise/Client/Localhost.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Localhost.php 8 Jul 2004 14:36:16 -0000 1.1
--- Localhost.php 12 Jul 2004 03:01:53 -0000 1.2
***************
*** 258,261 ****
--- 258,280 ----
}
+ /**
+ * Lists the groups available for an application.
+ *
+ * @author Jon Wood <jon at jellybob.co.uk>
+ * @access public
+ * @param string $adminUserName Administrator's username
+ * @param string $adminPassword Administrator's password
+ * @return array An array of application groups.
+ */
+ public function listAppGroupsByAdmin($adminUserName, $adminPassword)
+ {
+ $provider = $this->getServerProvider();
+ try {
+ return $provider->listAppGroupsByAdmin($adminUserName, $adminPassword);
+ } catch (Exception $e) {
+ die($e->getMessage());
+ }
+ }
+
protected function parseOptions($options)
{
Index: User.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Enterprise/Client/User.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** User.php 8 Jul 2004 14:36:16 -0000 1.1
--- User.php 12 Jul 2004 03:01:53 -0000 1.2
***************
*** 348,351 ****
--- 348,366 ----
/**
+ * Gets the groups defined for the current application
+ *
+ * @author Jon Wood <jon at jellybob.co.uk>
+ * @access public
+ */
+ public function listAppGroupsByAdmin()
+ {
+ try {
+ return $this->clientProvider->listAppGroupsByAdmin($this->userName, $this->password);
+ } catch (AEBaseException $error) {
+ throw $error;
+ }
+ }
+
+ /**
* Gets the groups for a given user on behalf of an adminitrator
*
***************
*** 391,395 ****
* @access public
* @param string $authCode Authorization code to verify
! * @return boolean rue if user has access, otherwise false
*
*/
--- 406,410 ----
* @access public
* @param string $authCode Authorization code to verify
! * @return boolean true if user has access, otherwise false
*
*/
More information about the geeklog-cvs
mailing list