LdapTools\Connection\LdapConnectionInterface::execute PHP Method

execute() public method

Execute an operation against LDAP (Add, Modify, Delete, Move, Query, etc).
public execute ( LdapTools\Operation\LdapOperationInterface $operation ) : mixed
$operation LdapTools\Operation\LdapOperationInterface
return mixed
    public function execute(LdapOperationInterface $operation);

Usage Example

 /**
  * Add the object with the selected attributes into LDAP.
  */
 public function execute()
 {
     $this->triggerBeforeCreationEvent();
     $operation = $this->getAddOperation()->setServer($this->server);
     $this->connection->execute($operation);
     $this->triggerAfterCreationEvent($operation);
 }
All Usage Examples Of LdapTools\Connection\LdapConnectionInterface::execute