LdapTools\Ldif\Entry\LdifEntryInterface::setLineFolding PHP Method

setLineFolding() public method

Set whether line folding should be used (lines exceeding $maxLineLength will be continued on the next line).
public setLineFolding ( boolean $lineFolding )
$lineFolding boolean
    public function setLineFolding($lineFolding);

Usage Example

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);
 }