modDelete() public method

Delete attribute values from current attributes.
public modDelete ( string $dn, array $entry ) : mixed
$dn string
$entry array
return mixed
Example #1
0
 /**
  * Deletes an attribute on the current entry.
  *
  * @param string $attribute
  *
  * @return bool
  */
 public function deleteAttribute($attribute)
 {
     // We need to pass in an empty array as the value
     // for the attribute so LDAP knows to remove it.
     $remove = [$attribute => []];
     return $this->connection->modDelete($this->getDn(), $remove);
 }