src/LdapTools/Connection/PageControl.php
public function update($result)
    {
        if (!$this->isEnabled) {
            return;
        }
        $this->resultNumber += $this->pageSize;
        if (!@ldap_control_paged_result_response($this->connection->getResource(), $result, $this->cookie)) {
            throw new LdapConnectionException(
                sprintf('Unable to set paged results response: %s', $this->connection->getLastError())
            );
        }
    }
public function update($result)
    {
        if (!$this->isEnabled) {
            return;
        }
        $this->resultNumber += $this->pageSize;
        if (!@ldap_control_paged_result_response($this->connection->getResource(), $result, $this->cookie)) {
            throw new LdapConnectionException(
                sprintf('Unable to set paged results response: %s', $this->connection->getLastError())
            );
        }
    }
public function update ( $ result ) { if ( ! $ this -> isEnabled ) { return ; } $ this -> resultNumber += $ this -> pageSize ; if ( ! @ ldap_control_paged_result_response ( $ this -> connection -> getResource ( ) , $ result , $ this -> cookie ) ) { throw new LdapConnectionException ( sprintf ( 'Unable to set paged results response: %s' , $ this -> connection -> getLastError ( ) ) ) ; } }
Updating the paging operation based on the result resource returned from a query.

@param resource $result
@throws LdapConnectionException
Updating the paging operation based on the result resource returned from a query .