PHP Class LdapTools\Ldif\Entry\LdifEntryModify

Author: Chad Sikorra ([email protected])
Inheritance: 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
Show file Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$batchMap Map the batch object types to the directives they relate to as a LDIF entry.
$batches LdapTools\BatchModify\BatchCollection

Public Methods

Method Description
__construct ( string $dn )
add ( $attribute, $value ) Add a value to the attribute for the LDAP object.
delete ( string $attribute, string $value ) Delete a specific attribute value.
getBatchCollection ( ) : BatchCollection Get the BatchCollection containing all the batches represented by this entry.
replace ( string $attribute, string | array $value ) Replace the current attribute value.
reset ( string $attribute ) Reset a specific attribute. This removes any value(s) it might have.
toOperation ( )
toString ( )

Protected Methods

Method Description
unicodePwdHack ( BatchModifyOperation $operation ) Workaround AD special cases with the unicodePwd attribute.

Method Details

__construct() public method

public __construct ( string $dn )
$dn string

add() public method

Add a value to the attribute for the LDAP object.
public add ( $attribute, $value )
$attribute
$value

delete() public method

Delete a specific attribute value.
public delete ( string $attribute, string $value )
$attribute string
$value string

getBatchCollection() public method

Get the BatchCollection containing all the batches represented by this entry.
public getBatchCollection ( ) : BatchCollection
return LdapTools\BatchModify\BatchCollection

replace() public method

Replace the current attribute value.
public replace ( string $attribute, string | array $value )
$attribute string
$value string | array

reset() public method

Reset a specific attribute. This removes any value(s) it might have.
public reset ( string $attribute )
$attribute string

toOperation() public method

public toOperation ( )

toString() public method

public toString ( )

unicodePwdHack() protected method

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

Property Details

$batchMap protected property

Map the batch object types to the directives they relate to as a LDIF entry.
protected $batchMap

$batches protected property

protected BatchCollection,LdapTools\BatchModify $batches
return LdapTools\BatchModify\BatchCollection