PHP Trait LdapTools\Operation\LdapOperationTrait

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

Protected Properties

Property Type Description
$controls LdapTools\Connection\LdapControl[]
$postOperations LdapTools\Operation\LdapOperationInterface[]
$preOperations LdapTools\Operation\LdapOperationInterface[]
$server null | string

Public Methods

Method Description
addControl ( variadic $controls ) Add a control to the operation.
addPostOperation ( variadic $operations ) Add an operation that should be executed after this operation.
addPreOperation ( variadic $operations ) Add an operation that should be executed before this operation.
getControls ( ) : LdapControl[] Get the controls set for the operation.
getPostOperations ( ) : LdapTools\Operation\LdapOperationInterface[] Get operations that should be executed after this operation.
getPreOperations ( ) : LdapTools\Operation\LdapOperationInterface[] Get operations that should be executed before this operation.
getServer ( ) : null | string Get the server that should be used for the operation.
setServer ( string | null $server ) Set the LDAP server that should be used for the operation.

Protected Methods

Method Description
mergeLogDefaults ( array $log ) : array Merges the log array with common log properties.

Method Details

addControl() public method

Add a control to the operation.
public addControl ( variadic $controls )
$controls variadic

addPostOperation() public method

Add an operation that should be executed after this operation.
public addPostOperation ( variadic $operations )
$operations variadic

addPreOperation() public method

Add an operation that should be executed before this operation.
public addPreOperation ( variadic $operations )
$operations variadic

getControls() public method

Get the controls set for the operation.
public getControls ( ) : LdapControl[]
return LdapTools\Connection\LdapControl[]

getPostOperations() public method

Get operations that should be executed after this operation.
public getPostOperations ( ) : LdapTools\Operation\LdapOperationInterface[]
return LdapTools\Operation\LdapOperationInterface[]

getPreOperations() public method

Get operations that should be executed before this operation.
public getPreOperations ( ) : LdapTools\Operation\LdapOperationInterface[]
return LdapTools\Operation\LdapOperationInterface[]

getServer() public method

Get the server that should be used for the operation.
public getServer ( ) : null | string
return null | string

mergeLogDefaults() protected method

Merges the log array with common log properties.
protected mergeLogDefaults ( array $log ) : array
$log array
return array

setServer() public method

Set the LDAP server that should be used for the operation.
public setServer ( string | null $server )
$server string | null

Property Details

$controls protected_oe property

protected LdapControl[],LdapTools\Connection $controls
return LdapTools\Connection\LdapControl[]

$postOperations protected_oe property

protected LdapOperationInterface[],LdapTools\Operation $postOperations
return LdapTools\Operation\LdapOperationInterface[]

$preOperations protected_oe property

protected LdapOperationInterface[],LdapTools\Operation $preOperations
return LdapTools\Operation\LdapOperationInterface[]

$server protected_oe property

protected null|string $server
return null | string