DB
[ class tree: DB ] [ index: DB ] [ all elements ]

Class: LDAP_result

Source Location: /DB_ldap-1.2.1/DB/ldap.php

Class Overview

DB_result
   |
   --LDAP_result

LDAP result class


Author(s):

Version:

  • 1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 48]
LDAP result class

LDAP_result extends DB_result to provide specific LDAP result methods.



[ Top ]


Method Detail

LDAP_result (Constructor)   [line 77]

LDAP_result LDAP_result( &$dbh, resource $result, ref $dbh)

class constructor, calls DB_result constructor

Parameters:

ref   $dbh   —  reference to the db instance
resource   $result   —  ldap command result
   &$dbh   — 

[ Top ]

cmp   [line 234]

void cmp( $a, $b)


Parameters:

   $a   — 
   $b   — 

[ Top ]

fetchAll   [line 215]

mixed fetchAll( [integer $fetchmode = DB_FETCHMODE_DEFAULT], [integer $rownum = null])

return all records

returns a hash of all records, basically returning a copy of $this->_recordset

  • Return: DB_OK on success, NULL on no more rows or a DB_Error object on error
  • Access: public

Parameters:

integer   $fetchmode   —  format of fetched row
integer   $rownum   —  the row number to fetch (not used, here for interface compatibility)

[ Top ]

fetchInto   [line 190]

mixed fetchInto( &$ar, [integer $fetchmode = DB_FETCHMODE_DEFAULT], [integer $rownum = null], mixed $arr)

Fetch a row of data into an existing variable.
  • Return: DB_OK on success, NULL on no more rows or a DB_Error object on error
  • Access: public

Parameters:

mixed   $arr   —  reference to data containing the row
integer   $fetchmode   —  format of fetched row
integer   $rownum   —  the row number to fetch
   &$ar   — 

[ Top ]

fetchRow   [line 156]

array &fetchRow( [int $fetchmode = DB_FETCHMODE_DEFAULT], [int $rownum = null])

Fetch and return a row of data (it uses driver->fetchInto for that)
  • Return: a row of data, NULL on no more rows or PEAR_Error on error
  • Access: public

Parameters:

int   $fetchmode   —  format of fetched row
int   $rownum   —  the row number to fetch

[ Top ]

free   [line 270]

int free( )

Frees the resources allocated for this result set.
  • Return: error code
  • Access: public

[ Top ]

getRowCounter   [line 291]

integer getRowCounter( )

returns the actual rows number

[ Top ]

nextResult   [line 259]

bool nextResult( )

Get the next result if a batch of queries was executed.
  • Return: true if a new result is available or false if not.
  • Access: public

[ Top ]

numCols   [line 228]

int numCols( $result)

Get the the number of columns in a result set.
  • Return: the number of columns, or a DB error
  • Access: public

Parameters:

   $result   — 

[ Top ]

numRows   [line 246]

int numRows( )

Get the number of rows in a result set.
  • Return: the number of rows, or a DB error
  • Access: public

[ Top ]

tableInfo   [line 282]

void tableInfo( [ $mode = null])

  • Deprecated:

Parameters:

   $mode   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:46:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.