PHP Class LdapTools\Ldif\Entry\LdifEntryModDn

Author: Chad Sikorra ([email protected])
Inheritance: implements LdapTools\Ldif\Entry\LdifEntryInterface, use trait LdifEntryTrait
Show file Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$deleteOldRdn Whether the old RDN should be deleted.
$newRdn The new RDN.
$newSuperior The new location (ou/container) for the LDAP object.

Public Methods

Method Description
__construct ( string $dn, null | string $newLocation = null, null | string $newRdn = null, boolean $deleteOldRdn = true )
getDeleteOldRdn ( ) : boolean Get whether the old RDN should be deleted.
getNewLocation ( ) : string Get the new location (OU/container) for the LDAP object.
getNewRdn ( ) : string Get the new RDN for the LDAP object.
setDeleteOldRdn ( boolean $deleteOldRdn ) Set whether the old RDN should be deleted.
setNewLocation ( string $location ) Set the new location (OU/container) for the LDAP object.
setNewRdn ( string $rdn ) Set the new RDN (ie. name) for the LDAP object (in the form of "CN=NewName" or similar).
toOperation ( )
toString ( )

Method Details

__construct() public method

public __construct ( string $dn, null | string $newLocation = null, null | string $newRdn = null, boolean $deleteOldRdn = true )
$dn string
$newLocation null | string The new container/OU for the LDAP object.
$newRdn null | string The new RDN for the LDAP object.
$deleteOldRdn boolean Whether the old RDN should be deleted.

getDeleteOldRdn() public method

Get whether the old RDN should be deleted.
public getDeleteOldRdn ( ) : boolean
return boolean

getNewLocation() public method

Get the new location (OU/container) for the LDAP object.
public getNewLocation ( ) : string
return string

getNewRdn() public method

Get the new RDN for the LDAP object.
public getNewRdn ( ) : string
return string

setDeleteOldRdn() public method

Set whether the old RDN should be deleted.
public setDeleteOldRdn ( boolean $deleteOldRdn )
$deleteOldRdn boolean

setNewLocation() public method

Set the new location (OU/container) for the LDAP object.
public setNewLocation ( string $location )
$location string

setNewRdn() public method

Set the new RDN (ie. name) for the LDAP object (in the form of "CN=NewName" or similar).
public setNewRdn ( string $rdn )
$rdn string

toOperation() public method

public toOperation ( )

toString() public method

public toString ( )

Property Details

$deleteOldRdn protected property

Whether the old RDN should be deleted.
protected $deleteOldRdn

$newRdn protected property

The new RDN.
protected $newRdn

$newSuperior protected property

The new location (ou/container) for the LDAP object.
protected $newSuperior