src/Classes/AdldapExchange.php
public function storageDatabases($storageGroup, $attributes = ['cn', 'distinguishedname', 'displayname'])
    {
        $this->adldap->utilities()->validateNotNull('Storage Group', $storageGroup);

        $this->adldap->utilities()->validateLdapIsBound();

        $filter = '(&(objectCategory=msExchPrivateMDB))';

        $results = $this->connection->search($storageGroup, $filter, $attributes);

        $entries = $this->connection->getEntries($results);

        return $entries;
    }
public function storageDatabases($storageGroup, $attributes = ['cn', 'distinguishedname', 'displayname'])
    {
        $this->adldap->utilities()->validateNotNull('Storage Group', $storageGroup);

        $this->adldap->utilities()->validateLdapIsBound();

        $filter = '(&(objectCategory=msExchPrivateMDB))';

        $results = $this->connection->search($storageGroup, $filter, $attributes);

        $entries = $this->connection->getEntries($results);

        return $entries;
    }
public function storageDatabases ( $ storageGroup , $ attributes = [ 'cn' , 'distinguishedname' , 'displayname' ] ) { $ this -> adldap -> utilities ( ) -> validateNotNull ( 'Storage Group' , $ storageGroup ) ; $ this -> adldap -> utilities ( ) -> validateLdapIsBound ( ) ; $ filter = '(&(objectCategory=msExchPrivateMDB))' ; $ results = $ this -> connection -> search ( $ storageGroup , $ filter , $ attributes ) ; $ entries = $ this -> connection -> getEntries ( $ results ) ; return $ entries ; }
Returns a list of Databases within any given storage group in Exchange for a given mail server.

@param string $storageGroup The full DN of an Storage Group.  You can use exchange_storage_groups() to find the DN
@param array  $attributes   An array of the AD attributes you wish to return

@return array|bool|string
Returns a list of Databases within any given storage group in Exchange for a given mail server .