Adldap\Query\Builder::setDn PHP 메소드

setDn() 공개 메소드

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

Usage Example

예제 #1
0
파일: Factory.php 프로젝트: strebl/Adldap2
 /**
  * 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