PHP Класс LdapTools\Operation\RenameOperation

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

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

Свойство Тип Описание
$properties array

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

Метод Описание
__construct ( string $dn, null | string $newRdn = null, null | string $newLocation = null, boolean $deleteOldRdn = true )
getArguments ( )
getDeleteOldRdn ( ) : null | boolean Get whether or not the old RDN is removed after the operation.
getDn ( ) : null | string The distinguished name for an add, delete, or move operation.
getLdapFunction ( )
getLogArray ( )
getName ( )
getNewLocation ( ) : null | string Get the DN of the container/ou/parent that the object will be moved to.
getNewRdn ( ) : string Get the new RDN that the LDAP object will have.
setDeleteOldRdn ( boolean $delete ) Set whether or not the old RDN is removed after the operation. If your intent is to move the object, then this should be set to true typically.
setDn ( string $dn ) Set the distinguished name that the operation is working on.
setNewLocation ( null | string $dn ) Set the DN of the container/ou/parent that the object will be moved to. If the object is not moving, but rather just being renamed, then this should be set to null.
setNewRdn ( string $rdn ) Set the new RDN that the LDAP object will have (ie. "cn=Foo")

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

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

public __construct ( string $dn, null | string $newRdn = null, null | string $newLocation = null, boolean $deleteOldRdn = true )
$dn string The DN of the LDAP object to rename.
$newRdn null | string The new RDN in the form of "CN=NewName"
$newLocation null | string The new container/OU it should be placed. Leave null if only changing the RDN.
$deleteOldRdn boolean Whether the old RDN should be deleted.

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

public getArguments ( )

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

Get whether or not the old RDN is removed after the operation.
public getDeleteOldRdn ( ) : null | boolean
Результат null | boolean

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

The distinguished name for an add, delete, or move operation.
public getDn ( ) : null | string
Результат null | string

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

public getLdapFunction ( )

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

public getLogArray ( )

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

public getName ( )

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

Get the DN of the container/ou/parent that the object will be moved to.
public getNewLocation ( ) : null | string
Результат null | string

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

Get the new RDN that the LDAP object will have.
public getNewRdn ( ) : string
Результат string

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

Set whether or not the old RDN is removed after the operation. If your intent is to move the object, then this should be set to true typically.
public setDeleteOldRdn ( boolean $delete )
$delete boolean

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

Set the distinguished name that the operation is working on.
public setDn ( string $dn )
$dn string

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

Set the DN of the container/ou/parent that the object will be moved to. If the object is not moving, but rather just being renamed, then this should be set to null.
public setNewLocation ( null | string $dn )
$dn null | string

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

Set the new RDN that the LDAP object will have (ie. "cn=Foo")
public setNewRdn ( string $rdn )
$rdn string

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

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

protected array $properties
Результат array