LdapTools\Resolver\BaseValueResolver::setDn PHP Method

setDn() public method

Set the DN for the entry whose values are being converted.
public setDn ( string $dn )
$dn string
    public function setDn($dn)
    {
        $this->dn = $dn;
    }

Usage Example

Beispiel #1
0
 /**
  * Retrieve the AttributeValueResolver instance with the connection and other information set if needed.
  *
  * @param BaseValueResolver $valueResolver
  * @param null|string $dn
  */
 protected function configureValueResolver(BaseValueResolver $valueResolver, $dn = null)
 {
     if ($this->connection) {
         $valueResolver->setLdapConnection($this->connection);
     }
     if (!is_null($dn)) {
         $valueResolver->setDn($dn);
     }
 }