Property | Type | Description | |
---|---|---|---|
$comments | Any comments associated with the entry. | ||
$lineEnding | The line ending to use. | ||
$lineFolding | Whether or not a value should be folded (continued on the next line) if it goes past $maxLineLength | ||
$maxLineLength | The max length for a line before it is folded (if line folding is enabled). |
Method | Description | |
---|---|---|
addComment ( $comments ) | Add a comment to be associated with this entry. | |
getComments ( ) : string[] | Get the comments for this entry. | |
getLineEnding ( ) : string | Get the line ending that will be used. | |
getLineFolding ( ) : boolean | Get whether or not lines exceeding a certain length should be folded (continued on the next line) | |
getMaxLineLength ( ) : integer | Get the max length for a line before the value is folded (continued on the next line). | |
setLineEnding ( string $lineEnding ) | Set the line ending to be used. See the Ldif::LINE_ENDING constant for values. | |
setLineFolding ( boolean $lineFolding ) | Set whether or not lines exceeding a certain length should be folded (continued on the next line) | |
setMaxLineLength ( integer $length ) | Set the max length for a line before the value is folded (continued on the next line). |
Method | Description | |
---|---|---|
addCommentsToString ( string $ldif ) : string | Add any specified comments to the generated LDIF. | |
getLdifLine ( string $directive, string $value ) : string | Construct a single line of the LDIF for a given directive and value. | |
getValueForLine ( $value ) : string | Gets the value for the line while taking into account any line folding set. |
public addComment ( $comments ) | ||
$comments |
protected addCommentsToString ( string $ldif ) : string | ||
$ldif | string | |
return | string |
public getComments ( ) : string[] | ||
return | string[] |
public getLineEnding ( ) : string | ||
return | string |
public getLineFolding ( ) : boolean | ||
return | boolean |
public getMaxLineLength ( ) : integer | ||
return | integer |
protected getValueForLine ( $value ) : string | ||
$value | ||
return | string |
public setLineEnding ( string $lineEnding ) | ||
$lineEnding | string |
public setLineFolding ( boolean $lineFolding ) | ||
$lineFolding | boolean |
public setMaxLineLength ( integer $length ) | ||
$length | integer |
protected $lineFolding |