Adldap\Objects\BatchModification::setAttribute PHP Method

setAttribute() public method

Sets the attribute of the modification.
public setAttribute ( string $attribute ) : BatchModification
$attribute string
return BatchModification
    public function setAttribute($attribute)
    {
        $this->attribute = $attribute;
        return $this;
    }

Usage Example

Esempio n. 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::setAttribute