示例#1
0
 /**
  * Returns a query builder limited to exchange servers.
  *
  * @return Builder|false
  */
 public function exchangeServers()
 {
     $namingContext = $this->getConfigurationNamingContext();
     if (is_string($namingContext)) {
         return $this->query->setDn($namingContext)->whereEquals($this->schema->objectCategory(), $this->schema->objectCategoryExchangeServer());
     }
     return false;
 }
示例#2
0
 /**
  * Returns the object category model class mapping.
  *
  * @return array
  */
 protected function map()
 {
     return [$this->schema->objectCategoryComputer() => 'Adldap\\Models\\Computer', $this->schema->objectCategoryPerson() => 'Adldap\\Models\\User', $this->schema->objectCategoryGroup() => 'Adldap\\Models\\Group', $this->schema->objectCategoryExchangeServer() => 'Adldap\\Models\\ExchangeServer', $this->schema->objectCategoryContainer() => 'Adldap\\Models\\Container', $this->schema->objectCategoryPrinter() => 'Adldap\\Models\\Printer', $this->schema->objectCategoryOrganizationalUnit() => 'Adldap\\Models\\OrganizationalUnit'];
 }