[geeklog-cvs] Auth_Enterprise/Server/providers AEBasePearDBProvider.class.php,1.7,1.8 AEBaseServerProvider.class.php,1.3,1.4 AELDAPProvider.class.php,1.1,1.2 AEPearDBProvider.class.php,1.8,1.9

tony at iowaoutdoors.org tony at iowaoutdoors.org
Sun Jul 4 11:22:10 EDT 2004


Update of /var/cvs/Auth_Enterprise/Server/providers
In directory www:/tmp/cvs-serv24655/providers

Modified Files:
	AEBasePearDBProvider.class.php AEBaseServerProvider.class.php 
	AELDAPProvider.class.php AEPearDBProvider.class.php 
Log Message:
Had to rename classes and files to adhere to PEAR coding standards


Index: AEPearDBProvider.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Server/providers/AEPearDBProvider.class.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** AEPearDBProvider.class.php	3 Jul 2004 18:08:29 -0000	1.8
--- AEPearDBProvider.class.php	4 Jul 2004 15:22:08 -0000	1.9
***************
*** 19,28 ****
  * Bring in the base Auth_Enterprise provider
  */
! require_once 'Auth_Enterprise/Server/providers/AEBasePearDBProvider.class.php';
  
  /**
  * The Auth_Enterprise server configuration file
  */
! require_once 'Auth_Enterprise/Server/AEServerConfig.php';
  
  /**
--- 19,28 ----
  * Bring in the base Auth_Enterprise provider
  */
! require_once 'Auth/Enterprise/Server/providers/Enterprise_BasePearDBProvider.class.php';
  
  /**
  * The Auth_Enterprise server configuration file
  */
! require_once 'Auth/Enterprise/Server/AEServerConfig.php';
  
  /**
***************
*** 36,40 ****
  * 
  */
! class AEPearDBProvider extends AEBasePearDBProvider {
      /**
      * Constructor
--- 36,40 ----
  * 
  */
! class Enterprise_PearDBProvider extends Enterprise_BasePearDBProvider {
      /**
      * Constructor
***************
*** 211,215 ****
      {
          // Make sure new password is a valid format
!         if (!AEPasswordGenerator::isValidPassword($newPassword)) {
              throw new AEPasswordInvalid();
          }
--- 211,215 ----
      {
          // Make sure new password is a valid format
!         if (!Enterprise_PasswordGenerator::isValidPassword($newPassword)) {
              throw new AEPasswordInvalid();
          }
***************
*** 349,353 ****
      public function resetPassword($userName)
      {
!         $newPassword = AEPasswordGenerator::generatePassword();
          
          // Begin a SQL transaction if we can
--- 349,353 ----
      public function resetPassword($userName)
      {
!         $newPassword = Enterprise_PasswordGenerator::generatePassword();
          
          // Begin a SQL transaction if we can

Index: AEBasePearDBProvider.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Server/providers/AEBasePearDBProvider.class.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** AEBasePearDBProvider.class.php	3 Jul 2004 17:59:49 -0000	1.7
--- AEBasePearDBProvider.class.php	4 Jul 2004 15:22:08 -0000	1.8
***************
*** 19,43 ****
  * Service user object
  */
! require_once 'Auth_Enterprise/Server/AEServiceUser.class.php';
  
  /**
  * Bring in the base Auth_Enterprise provider
  */
! require_once 'Auth_Enterprise/Server/providers/AEBaseServerProvider.class.php';
  
  /**
  * The Auth_Enterprise group domain object
  */
! require_once 'Auth_Enterprise/Common/AEGroup.class.php';
  
  /**
  * The Auth_Enterprise privilege domain object
  */
! require_once 'Auth_Enterprise/Common/AEPrivilege.class.php';
  
  /**
  * Include the password generator
  */
! require_once 'Auth_Enterprise/Server/AEPasswordGenerator.class.php';
  
  /**
--- 19,43 ----
  * Service user object
  */
! require_once 'Auth/Enterprise/Server/Enterprise_ServiceUser.class.php';
  
  /**
  * Bring in the base Auth_Enterprise provider
  */
! require_once 'Auth/Enterprise/Server/providers/Enterprise_BaseServerProvider.class.php';
  
  /**
  * The Auth_Enterprise group domain object
  */
! require_once 'Auth/Enterprise/Common/Enterprise_Group.class.php';
  
  /**
  * The Auth_Enterprise privilege domain object
  */
! require_once 'Auth/Enterprise/Common/Enterprise_Privilege.class.php';
  
  /**
  * Include the password generator
  */
! require_once 'Auth/Enterprise/Server/Enterprise_PasswordGenerator.class.php';
  
  /**
***************
*** 58,62 ****
  *
  */
! abstract class AEBasePearDBProvider extends AEBaseServerProvider {
      /**
      * Instance of PEAR::DB Object
--- 58,62 ----
  *
  */
! abstract class Enterprise_BasePearDBProvider extends Enterprise_BaseServerProvider {
      /**
      * Instance of PEAR::DB Object
***************
*** 481,485 ****
              return $userGroups;
          }
!         $curGroup = new AEGroup();
          while ($row = $result->fetchRow($this->_fetchMode)) {
              $curGroup->setGroupId($row[0]);
--- 481,485 ----
              return $userGroups;
          }
!         $curGroup = new Enterprise_Group();
          while ($row = $result->fetchRow($this->_fetchMode)) {
              $curGroup->setGroupId($row[0]);
***************
*** 654,663 ****
      {
          $numRows = $sqlResult->numRows();
!         $tmpPriv = new AEPrivilege();
          $privArray = array();
          
          for ($i = 1; $i <= $numRows; $i++) {
              $row = $sqlResult->fetchRow($this->fetchMode);
!             $tmpPriv = new AEPrivilege();
              $tmpPriv->setPrivilegeCode($row[0]);
              $tmpPriv->setPrivilegeDesc($row[1]);
--- 654,663 ----
      {
          $numRows = $sqlResult->numRows();
!         $tmpPriv = new Enterprise_Privilege();
          $privArray = array();
          
          for ($i = 1; $i <= $numRows; $i++) {
              $row = $sqlResult->fetchRow($this->fetchMode);
!             $tmpPriv = new Enterprise_Privilege();
              $tmpPriv->setPrivilegeCode($row[0]);
              $tmpPriv->setPrivilegeDesc($row[1]);
***************
*** 680,684 ****
      {
          // Pull data into array
!         $user = new AEServiceUser();
          $row = $sqlResult->fetchRow($this->fetchMode);
          
--- 680,684 ----
      {
          // Pull data into array
!         $user = new Enterprise_ServiceUser();
          $row = $sqlResult->fetchRow($this->fetchMode);
          

Index: AEBaseServerProvider.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Server/providers/AEBaseServerProvider.class.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AEBaseServerProvider.class.php	19 Jun 2004 20:14:48 -0000	1.3
--- AEBaseServerProvider.class.php	4 Jul 2004 15:22:08 -0000	1.4
***************
*** 19,23 ****
  * The Auth_Enterprise service inteface
  */
! require_once 'Auth_Enterprise/Common/AEServiceInterface.class.php';
  
  /**
--- 19,23 ----
  * The Auth_Enterprise service inteface
  */
! require_once 'Auth/Enterprise/Common/Enterprise_ServiceInterface.class.php';
  
  /**
***************
*** 35,39 ****
  *
  */
! abstract class AEBaseServerProvider implements AEServiceInterface {
      /**
      * Application ID
--- 35,39 ----
  *
  */
! abstract class Enterprise_BaseServerProvider implements Enterprise_ServiceInterface {
      /**
      * Application ID

Index: AELDAPProvider.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Server/providers/AELDAPProvider.class.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AELDAPProvider.class.php	24 Jun 2004 22:02:55 -0000	1.1
--- AELDAPProvider.class.php	4 Jul 2004 15:22:08 -0000	1.2
***************
*** 20,29 ****
  * Bring in the base Auth_Enterprise provider
  */
! require_once 'Auth_Enterprise/Server/providers/AEBasePearDBProvider.class.php';
  
  /**
  * The Auth_Enterprise server configuration file
  */
! require_once 'Auth_Enterprise/Server/AEServerConfig.php';
  
  /**
--- 20,29 ----
  * Bring in the base Auth_Enterprise provider
  */
! require_once 'Auth/Enterprise/Server/providers/Enterprise_BasePearDBProvider.class.php';
  
  /**
  * The Auth_Enterprise server configuration file
  */
! require_once 'Auth/Enterprise/Server/AEServerConfig.php';
  
  /**
***************
*** 38,42 ****
  * 
  */
! class AELDAPProvider extends AEBasePearDBProvider {
      /**
      * Handle to an LDAP connection
--- 38,42 ----
  * 
  */
! class Enterprise_LDAPProvider extends Enterprise_BasePearDBProvider {
      /**
      * Handle to an LDAP connection




More information about the geeklog-cvs mailing list