[geeklog-cvs] Auth_Enterprise/Client AELocalhostClient.class.php,1.1.1.1,1.2
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Wed Jun 16 01:26:33 EDT 2004
Update of /var/cvs/Auth_Enterprise/Client
In directory www:/tmp/cvs-serv26731
Modified Files:
AELocalhostClient.class.php
Log Message:
Implemented more methods and filled in some of the PHPDoc stuff.
Index: AELocalhostClient.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Client/AELocalhostClient.class.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** AELocalhostClient.class.php 15 Jun 2004 15:19:27 -0000 1.1.1.1
--- AELocalhostClient.class.php 16 Jun 2004 05:26:31 -0000 1.2
***************
*** 151,154 ****
--- 151,158 ----
* @author Tony Bibbs <tony at geeklog.net>
* @access public
+ * @param string $adminUserName Administrator's username
+ * @param string $adminPassword Administrator's password
+ * @param string $userName User to get privileges for
+ * @return array Array of AEPrivilege objects
*
*/
***************
*** 156,159 ****
--- 160,168 ----
{
$provider = $this->getServerProvider();
+ try {
+ return $provider->getUserPrivilegesByAdmin($adminUserName, $adminPassword, $userName);
+ } catch (Exception $e) {
+ die($e->getMessage());
+ }
}
***************
*** 184,192 ****
* @author Tony Bibbs <tony at geeklog.net>
* @access public
! *
*/
public function listAppPrivilegesByAdmin($adminUserName, $adminPassword)
{
$provider = $this->getServerProvider();
}
--- 193,209 ----
* @author Tony Bibbs <tony at geeklog.net>
* @access public
! * @param string $adminUserName Administrator's username
! * @param string $adminPassword Administrator's password
! * @return array Array of AEPrivilege objects
! *
*/
public function listAppPrivilegesByAdmin($adminUserName, $adminPassword)
{
$provider = $this->getServerProvider();
+ try {
+ return $provider->listAppPrivilegesByAdmin($adminUserName, $adminPassword);
+ } catch (Exception $e) {
+ die($e->getMessage());
+ }
}
***************
*** 196,199 ****
--- 213,219 ----
* @author Tony Bibbs <tony at geeklog.net>
* @access public
+ * @param string $adminUserName Administrator's Username
+ * @param string $adminPassword Administrator's Password
+ * @param string $userName User to get groups for
* @return array Array of group objects
*
***************
*** 202,205 ****
--- 222,230 ----
{
$provider = $this->getServerProvider();
+ try {
+ return $provider->getUserGroupsByAdmin($adminUserName, $adminPassword, $userName);
+ } catch (Exception $e) {
+ die($e->getMessage());
+ }
}
***************
*** 209,212 ****
--- 234,241 ----
* @author Tony Bibbs <tony at geeklog.net>
* @access public
+ * @param string $adminUserName Administrator's username
+ * @param string $adminPassword Administrator's password
+ * @param string $userName User to set groups for
+ * @param array $groupArray Array of groups to give user access to
*
*/
***************
*** 214,217 ****
--- 243,251 ----
{
$provider = $this->getServerProvider();
+ try {
+ $provider->setUserGroupsByAdmin($adminUserName, $adminPassword, $userName, $groupArray);
+ } catch (Exception $e) {
+ die($e->getMessage());
+ }
}
More information about the geeklog-cvs
mailing list