Пример #1
0
 /**
  * Figures out what to add to the LDIF entry for a specific key/value directive given.
  *
  * @param string $key
  * @param string $value
  * @param LdifEntryInterface $entry
  */
 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);
     }
 }