LdapTools\Ldif\LdifParser::addDirectiveToEntry PHP Метод

addDirectiveToEntry() защищенный Метод

Figures out what to add to the LDIF entry for a specific key/value directive given.
protected addDirectiveToEntry ( string $key, string $value, LdapTools\Ldif\Entry\LdifEntryInterface $entry )
$key string
$value string
$entry LdapTools\Ldif\Entry\LdifEntryInterface
    protected function addDirectiveToEntry($key, $value, LdifEntryInterface $entry)
    {
        if ($entry instanceof LdifEntryAdd) {
            $entry->addAttribute($key, $value);
        } elseif ($entry instanceof LdifEntryModDn) {
            $this->addModDnDirective($entry, $key, $value);
        } elseif ($entry instanceof LdifEntryModify) {
            $this->addModifyDirective($entry, $key, $value);
        }
    }