Свойство | Type | Description | |
---|---|---|---|
$attributes | array | ||
$connection | LdapTools\Connection\LdapConnectionInterface | ||
$container | string | ||
$dispatcher | LdapTools\Event\EventDispatcherInterface | ||
$dn | An explicitly set distinguished name. | ||
$hydrator | |||
$parameters | Any explicitly set parameter values are stored here. | ||
$schema | |||
$schemaFactory | |||
$server | A specific server to execute the LDAP object creation against. |
Méthode | Description | |
---|---|---|
__construct ( LdapTools\Connection\LdapConnectionInterface $connection, |
||
create ( string | |
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. |
Méthode | Description | |
---|---|---|
getAddOperation ( ) : |
Get the add operation and take care of the hydration process. | |
triggerAfterCreationEvent ( |
Trigger a LDAP object after creation event. | |
triggerBeforeCreationEvent ( ) | Trigger a LDAP object before creation event. |
public __construct ( LdapTools\Connection\LdapConnectionInterface $connection, |
||
$connection | LdapTools\Connection\LdapConnectionInterface | |
$schemaFactory | ||
$dispatcher | LdapTools\Event\EventDispatcherInterface |
public createComputer ( ) |
public createContact ( ) |
public createGroup ( ) |
public createUser ( ) |
protected getAddOperation ( ) : |
||
Résultat |
public in ( $container ) | ||
$container |
public setParameter ( string $parameter, mixed $value ) | ||
$parameter | string | |
$value | mixed |
protected triggerAfterCreationEvent ( |
||
$operation |
protected triggerBeforeCreationEvent ( ) |
protected LdapConnectionInterface,LdapTools\Connection $connection | ||
Résultat | LdapTools\Connection\LdapConnectionInterface |
protected EventDispatcherInterface,LdapTools\Event $dispatcher | ||
Résultat | LdapTools\Event\EventDispatcherInterface |
protected OperationHydrator,LdapTools\Hydrator $hydrator | ||
Résultat |
protected $parameters |
protected LdapObjectSchema,LdapTools\Schema $schema | ||
Résultat |
protected LdapObjectSchemaFactory,LdapTools\Factory $schemaFactory | ||
Résultat |