LdapTools\Ldif\Entry\LdifEntryModDn::setNewLocation PHP Метод

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

Set the new location (OU/container) for the LDAP object.
public setNewLocation ( string $location )
$location string
    public function setNewLocation($location)
    {
        $this->newSuperior = $location;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * @param LdifEntryModDn $entry
  * @param string $key
  * @param string $value
  * @throws LdifParserException
  */
 protected function addModDnDirective(LdifEntryModDn $entry, $key, $value)
 {
     $this->validateDirectiveInChange(LdifEntryInterface::TYPE_MODDN, $key);
     if ($key == LdifEntryModDn::DIRECTIVE_DELETEOLDRDN) {
         $entry->setDeleteOldRdn($this->getBoolFromStringInt($value));
     } elseif ($key == LdifEntryModDn::DIRECTIVE_NEWRDN) {
         $entry->setNewRdn($value);
     } elseif ($key == LdifEntryModDn::DIRECTIVE_NEWSUPERIOR) {
         $entry->setNewLocation($value);
     }
 }