PHP Класс LdapTools\Object\LdapObjectCreator

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$attributes array
$connection LdapTools\Connection\LdapConnectionInterface
$container string
$dispatcher LdapTools\Event\EventDispatcherInterface
$dn An explicitly set distinguished name.
$hydrator LdapTools\Hydrator\OperationHydrator
$parameters Any explicitly set parameter values are stored here.
$schema LdapTools\Schema\LdapObjectSchema
$schemaFactory LdapTools\Factory\LdapObjectSchemaFactory
$server A specific server to execute the LDAP object creation against.

Открытые методы

Метод Описание
__construct ( LdapTools\Connection\LdapConnectionInterface $connection, LdapObjectSchemaFactory $schemaFactory, LdapTools\Event\EventDispatcherInterface $dispatcher )
create ( string | LdapObjectSchema $type ) Specify the object type to create. Either by its string name type from the schema of the LdapObjectSchema.
createComputer ( ) Shorthand method for creating a computer LDAP object.
createContact ( ) Shorthand method for creating a contact LDAP object.
createGroup ( ) Shorthand method for creating a group LDAP object.
createOU ( ) Shorthand method for creating an OU LDAP object.
createUser ( ) Shorthand method for creating a generic user type.
execute ( ) Add the object with the selected attributes into LDAP.
getServer ( ) : string | null Get an explicit LDAP server to execute against, if any is set.
in ( $container ) Sets the OU/container the object will be created in.
setDn ( string $dn ) Explicitly set the DN to use when adding it to LDAP.
setParameter ( string $parameter, mixed $value ) Set a value for a specific placeholder in the schema, or in any values you added (ie. Anything enclosed within percentage signs such as %placeholder%).
setServer ( string $server ) Set an explicit LDAP server to execute against.
with ( array $attributes ) Sets the attributes the object will be created with.

Защищенные методы

Метод Описание
getAddOperation ( ) : AddOperation Get the add operation and take care of the hydration process.
triggerAfterCreationEvent ( AddOperation $operation ) Trigger a LDAP object after creation event.
triggerBeforeCreationEvent ( ) Trigger a LDAP object before creation event.

Описание методов

__construct() публичный метод

public __construct ( LdapTools\Connection\LdapConnectionInterface $connection, LdapObjectSchemaFactory $schemaFactory, LdapTools\Event\EventDispatcherInterface $dispatcher )
$connection LdapTools\Connection\LdapConnectionInterface
$schemaFactory LdapTools\Factory\LdapObjectSchemaFactory
$dispatcher LdapTools\Event\EventDispatcherInterface

create() публичный метод

Specify the object type to create. Either by its string name type from the schema of the LdapObjectSchema.
public create ( string | LdapObjectSchema $type )
$type string | LdapTools\Schema\LdapObjectSchema

createComputer() публичный метод

Shorthand method for creating a computer LDAP object.
public createComputer ( )

createContact() публичный метод

Shorthand method for creating a contact LDAP object.
public createContact ( )

createGroup() публичный метод

Shorthand method for creating a group LDAP object.
public createGroup ( )

createOU() публичный метод

Shorthand method for creating an OU LDAP object.
public createOU ( )

createUser() публичный метод

Shorthand method for creating a generic user type.
public createUser ( )

execute() публичный метод

Add the object with the selected attributes into LDAP.
public execute ( )

getAddOperation() защищенный метод

Get the add operation and take care of the hydration process.
protected getAddOperation ( ) : AddOperation
Результат LdapTools\Operation\AddOperation

getServer() публичный метод

Get an explicit LDAP server to execute against, if any is set.
public getServer ( ) : string | null
Результат string | null

in() публичный метод

Sets the OU/container the object will be created in.
public in ( $container )
$container

setDn() публичный метод

Explicitly set the DN to use when adding it to LDAP.
public setDn ( string $dn )
$dn string

setParameter() публичный метод

Set a value for a specific placeholder in the schema, or in any values you added (ie. Anything enclosed within percentage signs such as %placeholder%).
public setParameter ( string $parameter, mixed $value )
$parameter string
$value mixed

setServer() публичный метод

Set an explicit LDAP server to execute against.
public setServer ( string $server )
$server string

triggerAfterCreationEvent() защищенный метод

Trigger a LDAP object after creation event.
protected triggerAfterCreationEvent ( AddOperation $operation )
$operation LdapTools\Operation\AddOperation

triggerBeforeCreationEvent() защищенный метод

Trigger a LDAP object before creation event.

with() публичный метод

Sets the attributes the object will be created with.
public with ( array $attributes )
$attributes array

Описание свойств

$attributes защищенное свойство

protected array $attributes
Результат array

$connection защищенное свойство

protected LdapConnectionInterface,LdapTools\Connection $connection
Результат LdapTools\Connection\LdapConnectionInterface

$container защищенное свойство

protected string $container
Результат string

$dispatcher защищенное свойство

protected EventDispatcherInterface,LdapTools\Event $dispatcher
Результат LdapTools\Event\EventDispatcherInterface

$dn защищенное свойство

An explicitly set distinguished name.
protected $dn

$hydrator защищенное свойство

protected OperationHydrator,LdapTools\Hydrator $hydrator
Результат LdapTools\Hydrator\OperationHydrator

$parameters защищенное свойство

Any explicitly set parameter values are stored here.
protected $parameters

$schema защищенное свойство

protected LdapObjectSchema,LdapTools\Schema $schema
Результат LdapTools\Schema\LdapObjectSchema

$schemaFactory защищенное свойство

protected LdapObjectSchemaFactory,LdapTools\Factory $schemaFactory
Результат LdapTools\Factory\LdapObjectSchemaFactory

$server защищенное свойство

A specific server to execute the LDAP object creation against.
protected $server