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

Class: LDAP_result

Source Location: /DB_ldap-1.0/ldap.php

Class Overview

DB_result
   |
   --LDAP_result

LDAP result class


Author(s):

Version:

  • 1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 44]
LDAP result class

LDAP_result extends DB_result to provide specific LDAP result methods.



[ Top ]


Method Detail

LDAP_result (Constructor)   [line 73]

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

class constructor, calls DB_result constructor

Parameters:

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

[ Top ]

cmp   [line 220]

void cmp( mixed $a, mixed $b)


[ Top ]

fetchAll   [line 201]

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 176]

mixed fetchInto( mixed &$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

[ Top ]

fetchRow   [line 152]

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 256]

int free( )

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

[ Top ]

getRowCounter   [line 277]

integer getRowCounter( )

returns the actual rows number

[ Top ]

nextResult   [line 245]

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 214]

int numCols( mixed $result)

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

[ Top ]

numRows   [line 232]

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 268]

void tableInfo( [mixed $mode = null])

  • Deprecated:

[ Top ]


Documentation generated on Fri, 30 Apr 2004 21:35:28 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.