findByDn() public method

Finds a record by its distinguished name.
public findByDn ( string | array $dn, array | string $columns = [] ) : boolean | Model
$dn string | array
$columns array | string
return boolean | Adldap\Models\Model
Esempio n. 1
0
 /**
  * Returns the Container of the current Model.
  *
  * https://msdn.microsoft.com/en-us/library/ms679012(v=vs.85).aspx
  *
  * @return Container|Entry|bool
  */
 public function getObjectClass()
 {
     return $this->query->findByDn($this->getObjectCategoryDn());
 }