PHP Трейт LdapTools\Ldif\Entry\LdifEntryTrait

Автор: Chad Sikorra ([email protected])
Наследование: use trait LdapTools\Ldif\LdifStringBuilderTrait
Показать файл Открыть проект

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

Свойство Тип Описание
$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.

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

Метод Описание
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.

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

Метод Описание
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.

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

addControl() публичный Метод

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

addControlsToString() защищенный Метод

Add any LDAP controls to the specified LDIF.
protected addControlsToString ( string $ldif ) : string
$ldif string
Результат string

getCommonString() защищенный Метод

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
Результат string

getControls() публичный Метод

Get the controls for this entry.
public getControls ( ) : LdapControl[]
Результат LdapTools\Connection\LdapControl[]

getDn() публичный Метод

Get the DN for the LDIF entry.
public getDn ( ) : string
Результат string

getType() публичный Метод

Get the LDAP object type this entry represents. See 'setType()' for more information.
public getType ( ) : null | string
Результат null | string

hydrateOperation() защищенный Метод

protected hydrateOperation ( OperationHydrator $hydrator, LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$hydrator LdapTools\Hydrator\OperationHydrator
$operation LdapTools\Operation\LdapOperationInterface
Результат LdapTools\Operation\LdapOperationInterface

isUnicodePwdHackNeeded() защищенный Метод

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
Результат boolean

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

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

setType() публичный Метод

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

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

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

The changetype for the entry.
protected $changeType

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

protected LdapControl[],LdapTools\Connection $controls
Результат LdapTools\Connection\LdapControl[]

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

The DN represented by this LDIF entry.
protected $dn

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

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