LdapTools\LdapManager::getDomains PHP Метод

getDomains() публичный Метод

Get all of the domain names that are loaded.
public getDomains ( ) : string[]
Результат string[]
    public function getDomains()
    {
        return array_keys($this->domains);
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function collect(Request $request, Response $response, \Exception $exception = null)
 {
     if (!$this->ldap) {
         return;
     }
     $this->data['domains'] = $this->ldap->getDomains();
     $this->data['operations_by_domain'] = [];
     foreach ($this->data['domains'] as $domain) {
         $this->data['operations_by_domain'][$domain] = $this->addOperationToData(...$this->logger->getOperations($domain));
     }
     $this->data['operations'] = $this->addOperationToData(...$this->logger->getOperations());
     $this->data['errors'] = $this->addOperationToData(...$this->logger->getErrors());
 }
All Usage Examples Of LdapTools\LdapManager::getDomains