PHP Class LdapTools\Object\LdapObjectRepository

Author: Chad Sikorra ([email protected])
Datei anzeigen Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$attributes The default attributes to return
$hydrationMode An explicitly set hydration mode.
$ldap LdapTools\Connection\LdapConnectionInterface
$schema LdapTools\Schema\LdapObjectSchema

Public Methods

Method Description
__call ( string $method, mixed $arguments ) : mixed Determines which method to actually call.
__construct ( LdapObjectSchema $schema, LdapTools\Connection\LdapConnectionInterface $ldap )
buildLdapQuery ( ) : LdapQueryBuilder Get the LdapQueryBuilder with the defaults for this repository type.
findBy ( array $attributes ) : mixed
findOneBy ( array $attributes ) : mixed
getAttributes ( ) : array Get the default attributes that will be selected.
getHydrationMode ( ) : string Get the hydration mode used for the results.
setAttributes ( array $attributes ) Set the default attributes to select.
setHydrationMode ( string $hydrationMode ) Set the hydration mode to use for the results.

Method Details

__call() public method

Determines which method to actually call.
public __call ( string $method, mixed $arguments ) : mixed
$method string
$arguments mixed
return mixed

__construct() public method

public __construct ( LdapObjectSchema $schema, LdapTools\Connection\LdapConnectionInterface $ldap )
$schema LdapTools\Schema\LdapObjectSchema
$ldap LdapTools\Connection\LdapConnectionInterface

buildLdapQuery() public method

Get the LdapQueryBuilder with the defaults for this repository type.
public buildLdapQuery ( ) : LdapQueryBuilder
return LdapTools\Query\LdapQueryBuilder

findBy() public method

public findBy ( array $attributes ) : mixed
$attributes array
return mixed

findOneBy() public method

public findOneBy ( array $attributes ) : mixed
$attributes array
return mixed

getAttributes() public method

Get the default attributes that will be selected.
public getAttributes ( ) : array
return array

getHydrationMode() public method

Get the hydration mode used for the results.
public getHydrationMode ( ) : string
return string

setAttributes() public method

Set the default attributes to select.
public setAttributes ( array $attributes )
$attributes array

setHydrationMode() public method

Set the hydration mode to use for the results.
public setHydrationMode ( string $hydrationMode )
$hydrationMode string

Property Details

$attributes protected_oe property

The default attributes to return
protected $attributes

$hydrationMode protected_oe property

An explicitly set hydration mode.
protected $hydrationMode

$ldap protected_oe property

protected LdapConnectionInterface,LdapTools\Connection $ldap
return LdapTools\Connection\LdapConnectionInterface

$schema protected_oe property

protected LdapObjectSchema,LdapTools\Schema $schema
return LdapTools\Schema\LdapObjectSchema