Method |
Description |
|
__construct ( array $attributes, Builder $builder ) |
Constructor. |
|
__get ( mixed $key ) : boolean |
Dynamically retrieve attributes on the object. |
|
__set ( mixed $key, mixed $value ) |
Dynamically set attributes on the object. |
|
addModification ( BatchModification $modification ) |
Adds a modification to the models modifications array. |
|
countAttributes ( ) : integer |
Returns the number of attributes inside
the attributes property. |
|
create ( ) : boolean |
Creates the entry in LDAP. |
|
createAttribute ( string $attribute, mixed $value ) : boolean |
Creates an attribute on the current model. |
|
delete ( ) : boolean |
Deletes the current entry. |
|
deleteAttribute ( string $attribute ) : boolean |
Deletes an attribute on the current entry. |
|
fill ( array $attributes = [] ) |
Fills the entry with the supplied attributes. |
|
filterRawAttributes ( array $attributes = [], array | string $keys = ['count'] ) : array |
Filters the count key recursively from raw LDAP attributes. |
|
getAttribute ( integer | string $key, integer | string $subKey = null ) : mixed |
Returns the models attribute with the specified key. |
|
getAttributes ( ) : array |
Returns all of the models attributes. |
|
getCommonName ( ) : string |
Returns the model's common name. |
|
getDirty ( ) : array |
Get the attributes that have been changed since last sync. |
|
getDistinguishedName ( ) : string | null |
Returns the model's distinguished name string. |
|
getDn ( ) : string | null |
Returns the model's distinguished name string. |
|
getDnBuilder ( ) : DistinguishedName |
Returns a DistinguishedName object for modifying the current models DN. |
|
getFirstAttribute ( string $key ) : mixed |
Returns the first attribute by the specified key. |
|
getModifications ( ) : array |
Sets and returns the models modifications. |
|
getNewDnBuilder ( string $baseDn = '' ) : DistinguishedName |
Returns a new DistinguishedName object for building onto. |
|
getOriginal ( ) : array |
Returns the models original attributes. |
|
getQuery ( ) : Builder |
Returns the current query builder. |
|
getSchema ( ) : Adldap\Schemas\SchemaInterface |
Returns the current model schema. |
|
hasAttribute ( integer | string $key, integer | string $subKey = null ) : boolean |
Returns true / false if the specified attribute
exists in the attributes array. |
|
jsonSerialize ( ) : array |
Convert the object into something JSON serializable. |
|
move ( string $rdn, string | null $newParentDn = null, boolean | true $deleteOldRdn = true ) : boolean |
Moves the current model to a new RDN and new parent. |
|
newCollection ( mixed $items = [] ) : Collection |
Returns a new collection with the specified items. |
|
newQuery ( ) : Builder |
Returns a new query builder instance. |
|
offsetExists ( string $offset ) : boolean |
Determine if the given offset exists. |
|
offsetGet ( string $offset ) : mixed |
Get the value for a given offset. |
|
offsetSet ( string $offset, mixed $value ) : void |
Set the value at the given offset. |
|
offsetUnset ( string $offset ) : void |
Unset the value at the given offset. |
|
rename ( string $rdn ) : boolean |
Alias for the move method. |
|
save ( ) : boolean |
Saves the changes to LDAP and returns the results. |
|
setAttribute ( integer | string $key, mixed $value, integer | string $subKey = null ) |
Sets an attributes value by the specified key and sub-key. |
|
setCommonName ( string $name ) |
Sets the model's common name. |
|
setDistinguishedName ( string | DistinguishedName $dn ) |
Sets the model's distinguished name attribute. |
|
setDn ( string $dn ) |
Sets the model's distinguished name attribute. |
|
setFirstAttribute ( integer | string $key, mixed $value ) |
Sets the first attributes value by the specified key. |
|
setModifications ( array $modifications = [] ) |
Sets the models modifications array. |
|
setQuery ( Builder $builder ) |
Sets the current query builder. |
|
setRawAttributes ( array $attributes = [] ) |
Sets the attributes property. |
|
setSchema ( Adldap\Schemas\SchemaInterface $schema ) |
Sets the current model schema. |
|
syncOriginal ( ) |
Synchronizes the models original attributes
with the model's current attributes. |
|
syncRaw ( ) : boolean |
Synchronizes the models attributes with the server values. |
|
update ( ) : boolean |
Updates the model. |
|
updateAttribute ( string $attribute, mixed $value ) : boolean |
Updates the specified attribute with the specified value. |
|