PHP Trait LdapTools\Ldif\Entry\LdifEntryTrait

Author: Chad Sikorra ([email protected])
Inheritance: use trait LdapTools\Ldif\LdifStringBuilderTrait
Afficher le fichier Open project: ldaptools/ldaptools

Protected Properties

Свойство Type Description
$changeType The changetype for the entry.
$controls LdapTools\Connection\LdapControl[]
$dn The DN represented by this LDIF entry.
$type The LDAP object type this entry is based off of.

Méthodes publiques

Méthode Description
addControl ( LdapControl $control ) Add a LDAP control that should be used when processing this entry.
getControls ( ) : LdapControl[] Get the controls for this entry.
getDn ( ) : string Get the DN for the LDIF entry.
getType ( ) : null | string Get the LDAP object type this entry represents. See 'setType()' for more information.
setDn ( string $dn ) Set the DN for the LDIF entry.
setType ( string | null $type ) Set the LDAP object type this entry should represent. This is a string from the schema for the domain, such as 'user', 'group', 'contact', etc. If this is not null then the schema definition is used when transforming the entry to a string/operation.

Méthodes protégées

Méthode Description
addControlsToString ( string $ldif ) : string Add any LDAP controls to the specified LDIF.
getCommonString ( string | null $dn = null ) : string Get the base start of the string for a LDIF entry (comments, DN, changetype, controls).
hydrateOperation ( OperationHydrator $hydrator, LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
isUnicodePwdHackNeeded ( ) : boolean Determine if we might need to work around the unusual formatting for unicodePwd. This is pretty much the only attribute that will ever need a special case for conversion for LDIF creation.

Method Details

addControl() public méthode

Add a LDAP control that should be used when processing this entry.
public addControl ( LdapControl $control )
$control LdapTools\Connection\LdapControl

addControlsToString() protected méthode

Add any LDAP controls to the specified LDIF.
protected addControlsToString ( string $ldif ) : string
$ldif string
Résultat string

getCommonString() protected méthode

Get the base start of the string for a LDIF entry (comments, DN, changetype, controls).
protected getCommonString ( string | null $dn = null ) : string
$dn string | null
Résultat string

getControls() public méthode

Get the controls for this entry.
public getControls ( ) : LdapControl[]
Résultat LdapTools\Connection\LdapControl[]

getDn() public méthode

Get the DN for the LDIF entry.
public getDn ( ) : string
Résultat string

getType() public méthode

Get the LDAP object type this entry represents. See 'setType()' for more information.
public getType ( ) : null | string
Résultat null | string

hydrateOperation() protected méthode

protected hydrateOperation ( OperationHydrator $hydrator, LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$hydrator LdapTools\Hydrator\OperationHydrator
$operation LdapTools\Operation\LdapOperationInterface
Résultat LdapTools\Operation\LdapOperationInterface

isUnicodePwdHackNeeded() protected méthode

Determine if we might need to work around the unusual formatting for unicodePwd. This is pretty much the only attribute that will ever need a special case for conversion for LDIF creation.
protected isUnicodePwdHackNeeded ( ) : boolean
Résultat boolean

setDn() public méthode

Set the DN for the LDIF entry.
public setDn ( string $dn )
$dn string

setType() public méthode

Set the LDAP object type this entry should represent. This is a string from the schema for the domain, such as 'user', 'group', 'contact', etc. If this is not null then the schema definition is used when transforming the entry to a string/operation.
public setType ( string | null $type )
$type string | null

Property Details

$changeType protected_oe property

The changetype for the entry.
protected $changeType

$controls protected_oe property

protected LdapControl[],LdapTools\Connection $controls
Résultat LdapTools\Connection\LdapControl[]

$dn protected_oe property

The DN represented by this LDIF entry.
protected $dn

$type protected_oe property

The LDAP object type this entry is based off of.
protected $type