PHP 클래스 LdapTools\Object\LdapObjectCreator

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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