LdapTools\Operation\QueryOperation::getUsePaging PHP Method

getUsePaging() public method

Get whether or not paging should be used for the query operation.
public getUsePaging ( ) : boolean | null
return boolean | null
    public function getUsePaging()
    {
        return $this->properties['usePaging'];
    }

Usage Example

 /**
  * Based on the query operation, determine whether paging should be used.
  *
  * @param QueryOperation $operation
  * @return bool
  */
 protected function shouldUsePaging(QueryOperation $operation)
 {
     return $operation->getUsePaging() && $operation->getScope() != QueryOperation::SCOPE['BASE'];
 }