Adldap\Objects\BatchModification::setAttribute PHP Méthode

setAttribute() public méthode

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

Usage Example

Exemple #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