LdapTools\Query\Builder\FilterBuilder::bNot PHP Method

bNot() public method

A logical NOT operator.
public bNot ( BaseOperator $op ) : bNot
$op LdapTools\Query\Operator\BaseOperator
return LdapTools\Query\Operator\bNot
    public function bNot(BaseOperator $op)
    {
        return new bNot($op);
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function toLdap($value)
 {
     /**
      * @todo There's a lot more potential logic that needs to happen for this to be accurate...
      */
     if ($this->getOperationType() == AttributeConverterInterface::TYPE_SEARCH_TO && !$value) {
         $fb = new FilterBuilder();
         $value = $fb->bNot($fb->eq('pwdLastSet', '0'));
     } else {
         $value = (bool) $value ? '0' : '-1';
     }
     return $value;
 }
All Usage Examples Of LdapTools\Query\Builder\FilterBuilder::bNot