LdapTools\Operation\LdapOperationInterface::getPreOperations PHP 메소드

getPreOperations() 공개 메소드

Get operations that should be executed before this operation.
public getPreOperations ( ) : LdapTools\Operation\LdapOperationInterface[]
리턴 LdapTools\Operation\LdapOperationInterface[]
    public function getPreOperations();

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function execute(LdapOperationInterface $operation)
 {
     $result = true;
     foreach ($operation->getPreOperations() as $preOperation) {
         $this->execute($preOperation);
     }
     if (!$this->shouldSkipOperation($operation)) {
         $this->dispatcher->dispatch(new LdapOperationEvent(Event::LDAP_OPERATION_EXECUTE_BEFORE, $operation, $this->connection));
         $result = $this->executeOperation($operation, $this->getLogObject($operation));
     }
     foreach ($operation->getPostOperations() as $postOperation) {
         $this->execute($postOperation);
     }
     return $result;
 }