PHP 클래스 Adldap\Objects\DistinguishedName

파일 보기 프로젝트 열기: adldap2/adldap2 1 사용 예제들

보호된 프로퍼티들

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

공개 메소드들

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

보호된 메소드들

메소드 설명
assembleRdns ( string $attribute, array $values = [] ) : string Assembles an RDN with the specified attribute and value.

메소드 상세

__construct() 공개 메소드

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

__toString() 공개 메소드

Returns the complete distinguished name.
public __toString ( ) : string
리턴 string

addCn() 공개 메소드

Adds a common name.
public addCn ( string $cn ) : DistinguishedName
$cn string
리턴 DistinguishedName

addDc() 공개 메소드

Adds a domain component.
public addDc ( string $dc ) : DistinguishedName
$dc string
리턴 DistinguishedName

addO() 공개 메소드

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

addOu() 공개 메소드

Adds an organizational unit.
public addOu ( string $ou ) : DistinguishedName
$ou string
리턴 DistinguishedName

addUid() 공개 메소드

Add a user identifier.
public addUid ( string $uid ) : DistinguishedName
$uid string
리턴 DistinguishedName

assemble() 공개 메소드

Assembles all of the RDNs and returns the result.
public assemble ( ) : string
리턴 string

assembleCns() 공개 메소드

Assembles the common names in the distinguished name.
public assembleCns ( ) : string
리턴 string

assembleDcs() 공개 메소드

Assembles the domain components in the distinguished Name.
public assembleDcs ( ) : string
리턴 string

assembleOs() 공개 메소드

Assembles the organization names in the distinguished name.
public assembleOs ( ) : string
리턴 string

assembleOus() 공개 메소드

Assembles the organizational units in the distinguished Name.
public assembleOus ( ) : string
리턴 string

assembleRdns() 보호된 메소드

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

assembleUids() 공개 메소드

Assembles the user ID's in the distinguished name.
public assembleUids ( ) : string
리턴 string

get() 공개 메소드

Returns the complete distinguished name.
public get ( ) : string
리턴 string

removeCn() 공개 메소드

Removes a common name.
public removeCn ( string $cn ) : DistinguishedName
$cn string
리턴 DistinguishedName

removeDc() 공개 메소드

Removes a domain component.
public removeDc ( string $dc ) : DistinguishedName
$dc string
리턴 DistinguishedName

removeO() 공개 메소드

Removes an organization name.
public removeO ( string $o ) : DistinguishedName
$o string
리턴 DistinguishedName

removeOu() 공개 메소드

Removes an organizational unit.
public removeOu ( string $ou ) : DistinguishedName
$ou string
리턴 DistinguishedName

removeUid() 공개 메소드

Removes a user identifier.
public removeUid ( string $uid ) : DistinguishedName
$uid string
리턴 DistinguishedName

setBase() 공개 메소드

Sets the base RDN of the distinguished name.
public setBase ( string | DistinguishedName $base ) : DistinguishedName
$base string | DistinguishedName
리턴 DistinguishedName

setSchema() 공개 메소드

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

프로퍼티 상세

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

The common names in the DN.
protected array $commonNames
리턴 array

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

The domain components in the DN.
protected array $domainComponents
리턴 array

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

The organization names in the DN.
protected array $organizationNames
리턴 array

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

The organizational units in the DN.
protected array $organizationUnits
리턴 array

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

The current LDAP schema.
protected SchemaInterface,Adldap\Schemas $schema
리턴 Adldap\Schemas\SchemaInterface

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

The RDN attribute types.
protected array $types
리턴 array

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

The uid's in the DN.
protected array $userIds
리턴 array