Adldap\Objects\BatchModification::setType PHP Method

setType() public method

Sets the type of the modification.
public setType ( integer $type ) : BatchModification
$type integer
return BatchModification
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * Removes all members from the current group.
  *
  * @return bool
  */
 public function removeMembers()
 {
     $modification = new BatchModification();
     $modification->setAttribute($this->schema->member());
     $modification->setType(LDAP_MODIFY_BATCH_REMOVE_ALL);
     $this->addModification($modification);
     return $this->save();
 }
All Usage Examples Of Adldap\Objects\BatchModification::setType