modifyBatch() public method

Batch modifies an existing entry on the current connection.
public modifyBatch ( string $dn, array $values ) : mixed
$dn string
$values array
return mixed
Example #1
0
 /**
  * Persists attribute updates to the active directory record.
  *
  * @return bool
  */
 public function update()
 {
     $modifications = $this->getModifications();
     if (count($modifications) > 0) {
         return $this->connection->modifyBatch($this->getDn(), $modifications);
     }
     return true;
 }