PHP 트레잇 LdapTools\Ldif\LdifStringBuilderTrait

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools

보호된 프로퍼티들

프로퍼티 타입 설명
$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).

공개 메소드들

메소드 설명
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).

보호된 메소드들

메소드 설명
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.

메소드 상세

addComment() 공개 메소드

Add a comment to be associated with this entry.
public addComment ( $comments )
$comments

addCommentsToString() 보호된 메소드

Add any specified comments to the generated LDIF.
protected addCommentsToString ( string $ldif ) : string
$ldif string
리턴 string

getComments() 공개 메소드

Get the comments for this entry.
public getComments ( ) : string[]
리턴 string[]

getLdifLine() 보호된 메소드

Construct a single line of the LDIF for a given directive and value.
protected getLdifLine ( string $directive, string $value ) : string
$directive string
$value string
리턴 string

getLineEnding() 공개 메소드

Get the line ending that will be used.
public getLineEnding ( ) : string
리턴 string

getLineFolding() 공개 메소드

Get whether or not lines exceeding a certain length should be folded (continued on the next line)
public getLineFolding ( ) : boolean
리턴 boolean

getMaxLineLength() 공개 메소드

Get the max length for a line before the value is folded (continued on the next line).
public getMaxLineLength ( ) : integer
리턴 integer

getValueForLine() 보호된 메소드

Gets the value for the line while taking into account any line folding set.
protected getValueForLine ( $value ) : string
$value
리턴 string

setLineEnding() 공개 메소드

Set the line ending to be used. See the Ldif::LINE_ENDING constant for values.
public setLineEnding ( string $lineEnding )
$lineEnding string

setLineFolding() 공개 메소드

Set whether or not lines exceeding a certain length should be folded (continued on the next line)
public setLineFolding ( boolean $lineFolding )
$lineFolding boolean

setMaxLineLength() 공개 메소드

Set the max length for a line before the value is folded (continued on the next line).
public setMaxLineLength ( integer $length )
$length integer

프로퍼티 상세

$comments 보호되어 있는 프로퍼티

Any comments associated with the entry.
protected $comments

$lineEnding 보호되어 있는 프로퍼티

The line ending to use.
protected $lineEnding

$lineFolding 보호되어 있는 프로퍼티

Whether or not a value should be folded (continued on the next line) if it goes past $maxLineLength
protected $lineFolding

$maxLineLength 보호되어 있는 프로퍼티

The max length for a line before it is folded (if line folding is enabled).
protected $maxLineLength