Lines Matching refs:control
34 protected $control;
74 * Set the criticality of the control. Setting this will cause the LDAP server to return an error if paging is not
97 $this->control = null;
136 return $this->control === null || !($this->control->getCookie() === '');
147 return ($this->control !== null) ? $this->control->getSize() : null;
157 $cookie = ($this->control !== null)
158 ? $this->control->getCookie()
165 $control = $message->controls()
168 if ($control !== null && !$control instanceof PagingControl) {
170 'Expected a paging control, but received: %s.',
171 get_class($control)
174 # OpenLDAP returns no paging control in response to an abandon request. However, other LDAP implementations do;
176 if ($control === null && $size !== 0 && $this->isCritical) {
177 throw new ProtocolException('Expected a paging control, but received none.');
179 # The server does not support paging, but the control was not marked as critical. In this case the server will
180 # return results but might ignore the control altogether.
181 if ($control === null && $size !== 0 && !$this->isCritical) {
184 $this->control = $control;