Adldap\Query\Builder::setDn PHP Method

setDn() public method

Sets the DN to perform searches upon.
public setDn ( string | null $dn = null ) : Builder
$dn string | null
return Builder
    public function setDn($dn = null)
    {
        $this->dn = (string) $dn;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Returns a new query builder instance.
  *
  * @param string $baseDn
  *
  * @return Builder
  */
 public function newQueryBuilder($baseDn = '')
 {
     // Create a new Builder.
     $builder = new Builder($this->connection, $this->newGrammar());
     // Set the Base DN on the Builder.
     $builder->setDn($baseDn);
     // Return the new Builder instance.
     return $builder;
 }
All Usage Examples Of Adldap\Query\Builder::setDn