setLineEnding() public method

Set the line ending to be used. See the Ldif::LINE_ENDING constant for values.
public setLineEnding ( string $lineEnding )
$lineEnding string
Example #1
0
 /**
  * @param LdifEntryInterface $entry
  */
 protected function setupEntry(LdifEntryInterface $entry)
 {
     if (!is_null($entry->getType()) && $entry instanceof SchemaAwareInterface) {
         $entry->setLdapObjectSchema($this->getSchemaForType($entry->getType()));
     }
     if ($entry instanceof LdapAwareInterface) {
         $entry->setLdapConnection($this->connection);
     }
     $entry->setLineEnding($this->lineEnding);
     $entry->setLineFolding($this->lineFolding);
     $entry->setMaxLineLength($this->maxLineLength);
 }