PHP Class LdapTools\Connection\PageControl

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools

Protected Properties

Свойство Type Description
$connection LdapTools\Connection\LdapConnectionInterface
$cookie null | string
$isEnabled Whether or not paging is actually active for the connection.
$pageSize The page size for the paging operation.
$resultNumber The result set number the paging operation is currently on.
$sizeLimit The size limit for the paging operation.

Méthodes publiques

Méthode Description
__construct ( LdapTools\Connection\LdapConnectionInterface $connection )
end ( ) End a paging operation.
isActive ( ) : boolean Returns whether or not a paging operation is active based on the status of the paging cookie (omnomnom).
isEnabled ( ) : boolean Check whether or not paging is active. If it is not active, the controls methods will not actually do anything.
next ( ) Signifies to the connection to expect the next paged result with the current cookie and page size.
resetPagingControl ( ) Resets the paging control so that read operations work after a paging operation is used.
setIsEnabled ( boolean $enabled ) Set whether or not paging is active and should be used.
start ( integer $pageSize, integer $sizeLimit ) Start a paging operation by setting up the cookie and the page size. Optionally set a size limit.
update ( resource $result ) Updating the paging operation based on the result resource returned from a query.

Method Details

__construct() public méthode

public __construct ( LdapTools\Connection\LdapConnectionInterface $connection )
$connection LdapTools\Connection\LdapConnectionInterface

end() public méthode

End a paging operation.
public end ( )

isActive() public méthode

Returns whether or not a paging operation is active based on the status of the paging cookie (omnomnom).
public isActive ( ) : boolean
Résultat boolean

isEnabled() public méthode

Check whether or not paging is active. If it is not active, the controls methods will not actually do anything.
public isEnabled ( ) : boolean
Résultat boolean

next() public méthode

Signifies to the connection to expect the next paged result with the current cookie and page size.
public next ( )

resetPagingControl() public méthode

Resets the paging control so that read operations work after a paging operation is used.
public resetPagingControl ( )

setIsEnabled() public méthode

Set whether or not paging is active and should be used.
public setIsEnabled ( boolean $enabled )
$enabled boolean

start() public méthode

Start a paging operation by setting up the cookie and the page size. Optionally set a size limit.
public start ( integer $pageSize, integer $sizeLimit )
$pageSize integer
$sizeLimit integer

update() public méthode

Updating the paging operation based on the result resource returned from a query.
public update ( resource $result )
$result resource

Property Details

$connection protected_oe property

protected LdapConnectionInterface,LdapTools\Connection $connection
Résultat LdapTools\Connection\LdapConnectionInterface

$isEnabled protected_oe property

Whether or not paging is actually active for the connection.
protected $isEnabled

$pageSize protected_oe property

The page size for the paging operation.
protected $pageSize

$resultNumber protected_oe property

The result set number the paging operation is currently on.
protected $resultNumber

$sizeLimit protected_oe property

The size limit for the paging operation.
protected $sizeLimit