PHP Interface LdapTools\Ldif\Entry\LdifEntryInterface

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools Interface Usage Examples

Méthodes publiques

Méthode Description
addComment ( $comments ) Add a comment to the entry.
addControl ( LdapControl $control ) Add a control to the entry.
getComments ( ) : string[] Get the comments for the entry.
getControls ( ) : LdapControl[] Get the controls for the entry.
getDn ( ) : string Get the DN for the entry.
getLineEnding ( ) : string Get the line ending that will be used.
getLineFolding ( ) : boolean Get whether line folding should be used (lines exceeding $maxLineLength will be continued on the next line).
getMaxLineLength ( ) : integer Get the max length of a line when line folding is in use.
getType ( ) : string | null Get the LDAP object type this entry represents. See 'setType()' for more information.
setDn ( string $dn ) Set the DN for the entry.
setLineEnding ( string $lineEnding ) Set the line ending to be used. See the Ldif::LINE_ENDING constant for values.
setLineFolding ( boolean $lineFolding ) Set whether line folding should be used (lines exceeding $maxLineLength will be continued on the next line).
setMaxLineLength ( integer $maxLineLength ) Set the max length of a line when line folding is in use.
setType ( string $type ) Set the LDAP object type this entry should represent. This is a string from the schema for the domain, such as 'user', 'group', 'contact', etc. If this is not null then the schema definition is used when transforming the entry to a string/operation.
toOperation ( ) : LdapTools\Operation\LdapOperationInterface Get the LDAP operation represented by this LDIF entry.
toString ( ) : string Get the string representation of the LDIF entry.

Method Details

addComment() public méthode

Add a comment to the entry.
public addComment ( $comments )
$comments

addControl() public méthode

Add a control to the entry.
public addControl ( LdapControl $control )
$control LdapTools\Connection\LdapControl

getComments() public méthode

Get the comments for the entry.
public getComments ( ) : string[]
Résultat string[]

getControls() public méthode

Get the controls for the entry.
public getControls ( ) : LdapControl[]
Résultat LdapTools\Connection\LdapControl[]

getDn() public méthode

Get the DN for the entry.
public getDn ( ) : string
Résultat string

getLineEnding() public méthode

Get the line ending that will be used.
public getLineEnding ( ) : string
Résultat string

getLineFolding() public méthode

Get whether line folding should be used (lines exceeding $maxLineLength will be continued on the next line).
public getLineFolding ( ) : boolean
Résultat boolean

getMaxLineLength() public méthode

Get the max length of a line when line folding is in use.
public getMaxLineLength ( ) : integer
Résultat integer

getType() public méthode

Get the LDAP object type this entry represents. See 'setType()' for more information.
public getType ( ) : string | null
Résultat string | null

setDn() public méthode

Set the DN for the entry.
public setDn ( string $dn )
$dn string

setLineEnding() public méthode

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

setLineFolding() public méthode

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

setMaxLineLength() public méthode

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

setType() public méthode

Set the LDAP object type this entry should represent. This is a string from the schema for the domain, such as 'user', 'group', 'contact', etc. If this is not null then the schema definition is used when transforming the entry to a string/operation.
public setType ( string $type )
$type string

toOperation() public méthode

Get the LDAP operation represented by this LDIF entry.
public toOperation ( ) : LdapTools\Operation\LdapOperationInterface
Résultat LdapTools\Operation\LdapOperationInterface

toString() public méthode

Get the string representation of the LDIF entry.
public toString ( ) : string
Résultat string