ADORecordSet_ldap Klassenreferenz

Öffentliche Methoden

 ADORecordSet_ldap ($queryID, $mode=false)
 _initrs ()
 GetAssoc ($force_array=false, $first2cols=false)
 GetRowAssoc ()
 GetRowNums ()
 _fetch ()
 _close ()

Datenfelder

 $databaseType = "ldap"
 $canSeek = false
 $_entryID

Ausführliche Beschreibung

Definiert in Zeile 287 der Datei adodb-ldap.inc.php.


Dokumentation der Elementfunktionen

_close (  ) 

Definiert in Zeile 417 der Datei adodb-ldap.inc.php.

00417                           {
00418                 @ldap_free_result( $this->_queryID );   
00419                 $this->_queryID = false;
00420         }

_fetch (  ) 

Definiert in Zeile 386 der Datei adodb-ldap.inc.php.

00387         {               
00388                 if ( $this->_currentRow >= $this->_numOfRows && $this->_numOfRows >= 0 )
00389                 return false;
00390                 
00391         if ( $this->_currentRow == 0 ) {
00392                   $this->_entryID = ldap_first_entry( $this->connection->_connectionID, $this->_queryID );
00393         } else {
00394           $this->_entryID = ldap_next_entry( $this->connection->_connectionID, $this->_entryID );
00395         }
00396             
00397             $this->fields = ldap_get_attributes( $this->connection->_connectionID, $this->_entryID );
00398             $this->_numOfFields = $this->fields['count'];       
00399             switch ( $this->fetchMode ) {
00400             
00401             case LDAP_ASSOC:
00402             $this->fields = $this->GetRowAssoc();
00403             break;
00404             
00405             case LDAP_NUM:
00406                         $this->fields = array_merge($this->GetRowNums(),$this->GetRowAssoc());
00407             break;
00408             
00409             case LDAP_BOTH:
00410             default:
00411                         $this->fields = $this->GetRowNums();
00412             break;
00413         }
00414         return ( is_array( $this->fields ) );        
00415         }

_initrs (  ) 

Definiert in Zeile 317 der Datei adodb-ldap.inc.php.

00318         {
00319            /* 
00320            This could be teaked to respect the $COUNTRECS directive from ADODB
00321            It's currently being used in the _fetch() function and the
00322            GetAssoc() function
00323        */
00324             $this->_numOfRows = ldap_count_entries( $this->connection->_connectionID, $this->_queryID );
00325 
00326         }

ADORecordSet_ldap ( queryID,
mode = false 
)

Definiert in Zeile 293 der Datei adodb-ldap.inc.php.

00294         {
00295                 if ($mode === false) { 
00296                         global $ADODB_FETCH_MODE;
00297                         $mode = $ADODB_FETCH_MODE;
00298                 }
00299                 switch ($mode)
00300                 {
00301                 case ADODB_FETCH_NUM: 
00302                   $this->fetchMode = LDAP_NUM; 
00303                 break;
00304                 case ADODB_FETCH_ASSOC: 
00305                   $this->fetchMode = LDAP_ASSOC; 
00306                 break;
00307                 case ADODB_FETCH_DEFAULT:
00308                 case ADODB_FETCH_BOTH: 
00309                 default:
00310                   $this->fetchMode = LDAP_BOTH; 
00311                 break;
00312                 }
00313         
00314                 $this->ADORecordSet($queryID);  
00315         }

GetAssoc ( force_array = false,
first2cols = false 
)

Definiert in Zeile 331 der Datei adodb-ldap.inc.php.

00332         {
00333                 $records = $this->_numOfRows;
00334         $results = array();
00335             for ( $i=0; $i < $records; $i++ ) {
00336                 foreach ( $this->fields as $k=>$v ) {
00337                     if ( is_array( $v ) ) {
00338                         if ( $v['count'] == 1 ) {
00339                             $results[$i][$k] = $v[0];
00340                         } else {
00341                             array_shift( $v );
00342                             $results[$i][$k] = $v;
00343                         } 
00344                     }
00345                 }
00346             }
00347         
00348                 return $results; 
00349         }

GetRowAssoc (  ) 

Definiert in Zeile 351 der Datei adodb-ldap.inc.php.

00352         {
00353         $results = array();
00354         foreach ( $this->fields as $k=>$v ) {
00355             if ( is_array( $v ) ) {
00356                 if ( $v['count'] == 1 ) {
00357                     $results[$k] = $v[0];
00358                 } else {
00359                     array_shift( $v );
00360                     $results[$k] = $v;
00361                 } 
00362             }
00363         }
00364  
00365                 return $results; 
00366         }

GetRowNums (  ) 

Definiert in Zeile 368 der Datei adodb-ldap.inc.php.

00369     {
00370         $results = array();
00371         foreach ( $this->fields as $k=>$v ) {
00372         static $i = 0;
00373             if (is_array( $v )) {
00374                 if ( $v['count'] == 1 ) {
00375                     $results[$i] = $v[0];
00376                 } else {
00377                     array_shift( $v );
00378                     $results[$i] = $v;
00379                 } 
00380             $i++;
00381             }
00382         }
00383         return $results;
00384     }


Dokumentation der Datenelemente

$_entryID

Definiert in Zeile 291 der Datei adodb-ldap.inc.php.

$canSeek = false

Definiert in Zeile 290 der Datei adodb-ldap.inc.php.

$databaseType = "ldap"

Definiert in Zeile 289 der Datei adodb-ldap.inc.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2010 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen