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

setMaxLineLength() public method

Set the max length of a line when line folding is in use.
public setMaxLineLength ( integer $maxLineLength )
$maxLineLength integer
    public function setMaxLineLength($maxLineLength);

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