PHP Класс LdapTools\Ldif\Entry\LdifEntryAdd

Автор: Chad Sikorra ([email protected])
Наследование: implements LdapTools\Ldif\Entry\LdifEntryInterface, implements LdapTools\Schema\SchemaAwareInterface, implements LdapTools\Connection\LdapAwareInterface, use trait LdifEntryTrait, use trait LdapTools\Schema\SchemaAwareTrait, use trait LdapTools\Connection\LdapAwareTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$attributes The attributes to be sent to LDAP.
$location The OU/container where the LDAP object should be created.

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

Метод Описание
__construct ( string $dn = null, array $attributes = [] )
addAttribute ( string $attribute, mixed $value ) Add an attribute that will be added to the entry going to LDAP.
getAttributes ( ) : array Get the attributes to be sent to LDAP on an add changetype.
getLocation ( ) : null | string Get the location where the LDAP object should be created in LDAP.
setAttributes ( array $attributes ) Set the attributes that will be added to the entry going to LDAP.
setLocation ( string $location ) Set the location of where the LDAP object should be created in LDAP. Only set this when you are using a schema type via the 'setType()' method. Otherwise you must set the full DN via 'setDn()'.
toOperation ( )
toString ( )

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

Метод Описание
unicodePwdHack ( AddOperation $operation ) Workaround AD special cases with the unicodePwd attribute.

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

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

public __construct ( string $dn = null, array $attributes = [] )
$dn string
$attributes array

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

Add an attribute that will be added to the entry going to LDAP.
public addAttribute ( string $attribute, mixed $value )
$attribute string
$value mixed

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

Get the attributes to be sent to LDAP on an add changetype.
public getAttributes ( ) : array
Результат array

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

Get the location where the LDAP object should be created in LDAP.
public getLocation ( ) : null | string
Результат null | string

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

Set the attributes that will be added to the entry going to LDAP.
public setAttributes ( array $attributes )
$attributes array

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

Set the location of where the LDAP object should be created in LDAP. Only set this when you are using a schema type via the 'setType()' method. Otherwise you must set the full DN via 'setDn()'.
public setLocation ( string $location )
$location string

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

public toOperation ( )

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

public toString ( )

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

..
protected unicodePwdHack ( AddOperation $operation )
$operation LdapTools\Operation\AddOperation

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

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

The attributes to be sent to LDAP.
protected $attributes

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

The OU/container where the LDAP object should be created.
protected $location