예제 #1
0
 /**
  * Returns a query builder limited to exchange servers.
  *
  * @return Builder
  */
 public function containers()
 {
     return $this->query->whereEquals($this->schema->objectCategory(), $this->schema->objectCategoryContainer());
 }
예제 #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'];
 }