PHP Class Adldap\Objects\DistinguishedName

Afficher le fichier Open project: adldap2/adldap2 Class Usage Examples

Protected Properties

Свойство Type Description
$commonNames array The common names in the DN.
$domainComponents array The domain components in the DN.
$organizationNames array The organization names in the DN.
$organizationUnits array The organizational units in the DN.
$schema Adldap\Schemas\SchemaInterface The current LDAP schema.
$types array The RDN attribute types.
$userIds array The uid's in the DN.

Méthodes publiques

Méthode Description
__construct ( mixed $baseDn = null, Adldap\Schemas\SchemaInterface $schema = null ) Constructor.
__toString ( ) : string Returns the complete distinguished name.
addCn ( string $cn ) : DistinguishedName Adds a common name.
addDc ( string $dc ) : DistinguishedName Adds a domain component.
addO ( string $o ) Adds an organization name.
addOu ( string $ou ) : DistinguishedName Adds an organizational unit.
addUid ( string $uid ) : DistinguishedName Add a user identifier.
assemble ( ) : string Assembles all of the RDNs and returns the result.
assembleCns ( ) : string Assembles the common names in the distinguished name.
assembleDcs ( ) : string Assembles the domain components in the distinguished Name.
assembleOs ( ) : string Assembles the organization names in the distinguished name.
assembleOus ( ) : string Assembles the organizational units in the distinguished Name.
assembleUids ( ) : string Assembles the user ID's in the distinguished name.
get ( ) : string Returns the complete distinguished name.
removeCn ( string $cn ) : DistinguishedName Removes a common name.
removeDc ( string $dc ) : DistinguishedName Removes a domain component.
removeO ( string $o ) : DistinguishedName Removes an organization name.
removeOu ( string $ou ) : DistinguishedName Removes an organizational unit.
removeUid ( string $uid ) : DistinguishedName Removes a user identifier.
setBase ( string | DistinguishedName $base ) : DistinguishedName Sets the base RDN of the distinguished name.
setSchema ( Adldap\Schemas\SchemaInterface $schema = null ) : DistinguishedName Sets the schema for the distinguished name.

Méthodes protégées

Méthode Description
assembleRdns ( string $attribute, array $values = [] ) : string Assembles an RDN with the specified attribute and value.

Method Details

__construct() public méthode

Constructor.
public __construct ( mixed $baseDn = null, Adldap\Schemas\SchemaInterface $schema = null )
$baseDn mixed
$schema Adldap\Schemas\SchemaInterface

__toString() public méthode

Returns the complete distinguished name.
public __toString ( ) : string
Résultat string

addCn() public méthode

Adds a common name.
public addCn ( string $cn ) : DistinguishedName
$cn string
Résultat DistinguishedName

addDc() public méthode

Adds a domain component.
public addDc ( string $dc ) : DistinguishedName
$dc string
Résultat DistinguishedName

addO() public méthode

Adds an organization name.
public addO ( string $o )
$o string

addOu() public méthode

Adds an organizational unit.
public addOu ( string $ou ) : DistinguishedName
$ou string
Résultat DistinguishedName

addUid() public méthode

Add a user identifier.
public addUid ( string $uid ) : DistinguishedName
$uid string
Résultat DistinguishedName

assemble() public méthode

Assembles all of the RDNs and returns the result.
public assemble ( ) : string
Résultat string

assembleCns() public méthode

Assembles the common names in the distinguished name.
public assembleCns ( ) : string
Résultat string

assembleDcs() public méthode

Assembles the domain components in the distinguished Name.
public assembleDcs ( ) : string
Résultat string

assembleOs() public méthode

Assembles the organization names in the distinguished name.
public assembleOs ( ) : string
Résultat string

assembleOus() public méthode

Assembles the organizational units in the distinguished Name.
public assembleOus ( ) : string
Résultat string

assembleRdns() protected méthode

Assembles an RDN with the specified attribute and value.
protected assembleRdns ( string $attribute, array $values = [] ) : string
$attribute string
$values array
Résultat string

assembleUids() public méthode

Assembles the user ID's in the distinguished name.
public assembleUids ( ) : string
Résultat string

get() public méthode

Returns the complete distinguished name.
public get ( ) : string
Résultat string

removeCn() public méthode

Removes a common name.
public removeCn ( string $cn ) : DistinguishedName
$cn string
Résultat DistinguishedName

removeDc() public méthode

Removes a domain component.
public removeDc ( string $dc ) : DistinguishedName
$dc string
Résultat DistinguishedName

removeO() public méthode

Removes an organization name.
public removeO ( string $o ) : DistinguishedName
$o string
Résultat DistinguishedName

removeOu() public méthode

Removes an organizational unit.
public removeOu ( string $ou ) : DistinguishedName
$ou string
Résultat DistinguishedName

removeUid() public méthode

Removes a user identifier.
public removeUid ( string $uid ) : DistinguishedName
$uid string
Résultat DistinguishedName

setBase() public méthode

Sets the base RDN of the distinguished name.
public setBase ( string | DistinguishedName $base ) : DistinguishedName
$base string | DistinguishedName
Résultat DistinguishedName

setSchema() public méthode

Sets the schema for the distinguished name.
public setSchema ( Adldap\Schemas\SchemaInterface $schema = null ) : DistinguishedName
$schema Adldap\Schemas\SchemaInterface
Résultat DistinguishedName

Property Details

$commonNames protected_oe property

The common names in the DN.
protected array $commonNames
Résultat array

$domainComponents protected_oe property

The domain components in the DN.
protected array $domainComponents
Résultat array

$organizationNames protected_oe property

The organization names in the DN.
protected array $organizationNames
Résultat array

$organizationUnits protected_oe property

The organizational units in the DN.
protected array $organizationUnits
Résultat array

$schema protected_oe property

The current LDAP schema.
protected SchemaInterface,Adldap\Schemas $schema
Résultat Adldap\Schemas\SchemaInterface

$types protected_oe property

The RDN attribute types.
protected array $types
Résultat array

$userIds protected_oe property

The uid's in the DN.
protected array $userIds
Résultat array