LdapTools\Ldif\LdifEntryBuilder::move PHP Method

move() public method

Create a LDIF entry to move a LDAP object to a new OU/container.
public move ( string $dn, string $newLocation, boolean $deleteOldRdn = true ) : LdifEntryModDn
$dn string The DN for the LDAP object to move.
$newLocation string The DN of the new location.
$deleteOldRdn boolean Whether or not the old RDN should be deleted.
return LdapTools\Ldif\Entry\LdifEntryModDn
    public function move($dn, $newLocation, $deleteOldRdn = true)
    {
        return new LdifEntryModDn($dn, $newLocation, null, $deleteOldRdn);
    }