API Documentation

Ldap/Collection/Iterator/Default.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Ldap
version
$Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Ldap_Collection_Iterator_Default

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Ldap_Collection_Iterator_Default

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Ldap
Constants
ATTRIBUTE_TO_LOWER
ATTRIBUTE_TO_UPPER
ATTRIBUTE_NATIVE
Properties
$_ldap
$_resultId
$_current
$_itemCount
$_attributeNameTreatment
Methods
__construct
__destruct
close
getLdap
setAttributeNameTreatment
getAttributeNameTreatment
count
current
key
next
rewind
valid

Description

Zend_Ldap_Collection_Iterator_Default is the default collection iterator implementation using ext/ldap

Constants

ATTRIBUTE_TO_LOWER

 ATTRIBUTE_TO_LOWER = '1'

Details

value
1

ATTRIBUTE_TO_UPPER

 ATTRIBUTE_TO_UPPER = '2'

Details

value
2

ATTRIBUTE_NATIVE

 ATTRIBUTE_NATIVE = '3'

Details

value
3

Properties

$_attributeNameTreatment

integer|callback $_attributeNameTreatment = 'self'

The method that will be applied to the attribute's names.

Details

$_attributeNameTreatment
integer|callback
visibility
protected
default
self
final
false
static
false

$_current

resource $_current = 'null'

Current result entry identifier

Details

$_current
resource
visibility
protected
default
null
final
false
static
false

$_itemCount

integer $_itemCount = '1'

Number of items in query result

Details

$_itemCount
integer
visibility
protected
default
1
final
false
static
false

$_ldap

Zend_Ldap $_ldap = 'null'

LDAP Connection

Details

$_ldap
Zend_Ldap
visibility
protected
default
null
final
false
static
false

$_resultId

resource $_resultId = 'null'

Result identifier resource

Details

$_resultId
resource
visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( Zend_Ldap $ldap, resource $resultId ) : void

Constructor.

Arguments
$ldap
Zend_Ldap
$resultId
resource
Details
visibility
public
final
false
static
false

__destruct

__destruct( ) :
Details
visibility
public
final
false
static
false

close

close( ) : bool

Closes the current result set

Output
bool
Details
visibility
public
final
false
static
false

count

count( ) : int

Returns the number of items in current result Implements Countable

Output
int
Details
visibility
public
final
false
static
false

current

current( ) : array|null

Return the current result item Implements Iterator

Output
array|null
Details
visibility
public
final
false
static
false
throws

getAttributeNameTreatment

getAttributeNameTreatment( ) : integer|callback

Returns the currently set attribute name treatment

Output
integer|callback
Details
visibility
public
final
false
static
false

getLdap

getLdap( ) : Zend_Ldap

Gets the current LDAP connection.

Output
Zend_Ldap
Details
visibility
public
final
false
static
false

key

key( ) : string|null

Return the result item key Implements Iterator

Output
string|null
Details
visibility
public
final
false
static
false

next

next( ) :

Move forward to next result item Implements Iterator

Details
visibility
public
final
false
static
false
throws

rewind

rewind( ) :

Rewind the Iterator to the first result item Implements Iterator

Details
visibility
public
final
false
static
false
throws

setAttributeNameTreatment

setAttributeNameTreatment( integer|callback $attributeNameTreatment ) : Zend_Ldap_Collection_Iterator_Default

Sets the attribute name treatment.

Can either be one of the following constants - Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_TO_LOWER - Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_TO_UPPER - Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_NATIVE or a valid callback accepting the attribute's name as it's only argument and returning the new attribute's name.

Arguments
$attributeNameTreatment
integercallback
Output
Zend_Ldap_Collection_Iterator_Default
Provides a fluent interface
Details
visibility
public
final
false
static
false

valid

valid( ) : boolean

Check if there is a current result item after calls to rewind() or next() Implements Iterator

Output
boolean
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.