PHP Класс LdapTools\Object\LdapObject

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$attributes The attributes and values that represent this LDAP object.
$batches A collection of Batch objects for changes to be sent to LDAP.
$functions These are the expected "magic" function calls for the attributes.
$type The type as defined in the schema, if any.

Открытые методы

Метод Описание
__call ( string $method, array $arguments ) : mixed Determines which function, if any, should be called.
__construct ( array $attributes, string $type = '' )
__get ( string $attribute ) : mixed Magic property getter.
__isset ( string $attribute ) : boolean Magically check for an attributes existence on an isset call.
__set ( string $attribute, mixed $value ) Magic property setter.
__toString ( ) : string
add ( string $attribute, $values ) Add an additional value, or values, to an attribute.
get ( string $attribute ) : mixed Get the value of an attribute. An attribute with multiple values will return an array of values.
getBatchCollection ( ) : BatchCollection Get the BatchCollection object.
getType ( ) : string Get the LDAP type for this object.
has ( string $attribute, mixed $value = null ) : boolean Check to see if a specific attribute exists. Optionally check if it exists with a specific value.
isType ( string $type ) : boolean Check if this LDAP Object is a specific type (Schema type).
refresh ( array $attributes ) Updates a set of attributes/values on the object without incurring a tracked modification.
remove ( string $attribute, $values ) Remove a specific value, or multiple values, from an attribute.
reset ( $attributes ) Resets the attribute, which effectively removes any values it may have.
set ( string $attribute, mixed $value ) Set a value for an attribute.
setBatchCollection ( BatchCollection $batches ) Sets the BatchCollection.
toArray ( ) : array The array representation of the LDAP object.

Защищенные методы

Метод Описание
addAttributeValue ( mixed $value, mixed $valueToAdd ) : array Adds an additional value to an existing LDAP attribute value.
attributeHasValue ( string $attribute, mixed $value ) : boolean Check if an attribute has a specific value. Called only when the attribute is known to exist already.
removeAttributeValue ( mixed $value, mixed $valueToRemove ) : mixed Given the original value, remove if it's present.
resolveAttributeName ( string $attribute ) : string Retrieve the attribute in the case it exists in the array.

Описание методов

__call() публичный метод

Determines which function, if any, should be called.
public __call ( string $method, array $arguments ) : mixed
$method string
$arguments array
Результат mixed

__construct() публичный метод

public __construct ( array $attributes, string $type = '' )
$attributes array
$type string

__get() публичный метод

Magic property getter.
public __get ( string $attribute ) : mixed
$attribute string
Результат mixed

__isset() публичный метод

Magically check for an attributes existence on an isset call.
public __isset ( string $attribute ) : boolean
$attribute string
Результат boolean

__set() публичный метод

Magic property setter.
public __set ( string $attribute, mixed $value )
$attribute string
$value mixed

__toString() публичный метод

public __toString ( ) : string
Результат string

add() публичный метод

Add an additional value, or values, to an attribute.
public add ( string $attribute, $values )
$attribute string
$values

addAttributeValue() защищенный метод

Adds an additional value to an existing LDAP attribute value.
protected addAttributeValue ( mixed $value, mixed $valueToAdd ) : array
$value mixed
$valueToAdd mixed
Результат array

attributeHasValue() защищенный метод

Check if an attribute has a specific value. Called only when the attribute is known to exist already.
protected attributeHasValue ( string $attribute, mixed $value ) : boolean
$attribute string
$value mixed
Результат boolean

get() публичный метод

Get the value of an attribute. An attribute with multiple values will return an array of values.
public get ( string $attribute ) : mixed
$attribute string
Результат mixed

getBatchCollection() публичный метод

Get the BatchCollection object.
public getBatchCollection ( ) : BatchCollection
Результат LdapTools\BatchModify\BatchCollection

getType() публичный метод

Get the LDAP type for this object.
public getType ( ) : string
Результат string

has() публичный метод

Check to see if a specific attribute exists. Optionally check if it exists with a specific value.
public has ( string $attribute, mixed $value = null ) : boolean
$attribute string
$value mixed
Результат boolean

isType() публичный метод

Check if this LDAP Object is a specific type (Schema type).
public isType ( string $type ) : boolean
$type string
Результат boolean

refresh() публичный метод

Updates a set of attributes/values on the object without incurring a tracked modification.
public refresh ( array $attributes )
$attributes array

remove() публичный метод

Remove a specific value, or multiple values, from an attribute.
public remove ( string $attribute, $values )
$attribute string
$values

removeAttributeValue() защищенный метод

Given the original value, remove if it's present.
protected removeAttributeValue ( mixed $value, mixed $valueToRemove ) : mixed
$value mixed
$valueToRemove mixed
Результат mixed

reset() публичный метод

Resets the attribute, which effectively removes any values it may have.
public reset ( $attributes )
$attributes

resolveAttributeName() защищенный метод

Retrieve the attribute in the case it exists in the array.
protected resolveAttributeName ( string $attribute ) : string
$attribute string
Результат string

set() публичный метод

If a value already exists it will be replaced. If the value is empty the attribute will be cleared/reset.
public set ( string $attribute, mixed $value )
$attribute string
$value mixed

setBatchCollection() публичный метод

Sets the BatchCollection.
public setBatchCollection ( BatchCollection $batches )
$batches LdapTools\BatchModify\BatchCollection

toArray() публичный метод

The array representation of the LDAP object.
public toArray ( ) : array
Результат array

Описание свойств

$attributes защищенное свойство

The attributes and values that represent this LDAP object.
protected $attributes

$batches защищенное свойство

A collection of Batch objects for changes to be sent to LDAP.
protected $batches

$functions защищенное свойство

These are the expected "magic" function calls for the attributes.
protected $functions

$type защищенное свойство

The type as defined in the schema, if any.
protected $type