\Horde_Kolab_Server_Object_Mcached

Low level caching for the Kolab object.

Copyright 2008-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
__construct()
getGuid()
getExternalAttributes()
getInternalAttributes()
setInternalData()
exists()
readInternal()
getInternal()
getExternal()
getSingle()
toHash()
save()
delete()
generateId()
prepareObjectInformation()
getActions()
No public properties found
No constants found
No protected methods found
$_attributes_ext
$_attributes_int
$_actions
N/A
No private methods found
$_object
$_exists
$_cache_int
$_cache_ext
N/A

Properties

$_attributes_ext

$_attributes_ext : array

The external attributes supported by this class.

Type

array

$_attributes_int

$_attributes_int : array

The internal attributes required for this class.

Type

array

$_actions

$_actions : array

A cache for the list of actions this object supports.

Type

array

$_object

$_object : \Horde_Kolab_Server_Object

Link to the decorated object.

Type

\Horde_Kolab_Server_Object

$_exists

$_exists : 

Does the object exist?

Type

$_cache_int

$_cache_int : array

The cached internal result

Type

array

$_cache_ext

$_cache_ext : array

The cached external attribute values

Type

array

Methods

__construct()

__construct(\Horde_Kolab_Server_Object  $object) 

Initialize the Kolab Object. Provide either the GUID

Parameters

\Horde_Kolab_Server_Object $object

getGuid()

getGuid() : string

Get the GUID of this object

Returns

string —

the GUID of this object

getExternalAttributes()

getExternalAttributes() : array

Get the external attributes supported by this object.

Returns

array —

The external attributes supported by this object. This is a list of abbreviated attribute class names.

getInternalAttributes()

getInternalAttributes() : array

Get the internal attributes supported by this object.

Returns

array —

The internal attributes supported by this object. This is an association of internal attribute names an the correspodning attribute class names.

setInternalData()

setInternalData(array  $data) : NULL

Set the internal data of this object.

Parameters

array $data

A data array for the object.

Returns

NULL

exists()

exists() : NULL

Does the object exist?

Returns

NULL

readInternal()

readInternal() : array

Read the object data.

Returns

array —

The read data.

getInternal()

getInternal(array  $attributes) : array

Get the specified internal attributes.

Parameters

array $attributes

The internal attribute.

Returns

array —

The value(s) of these attribute

getExternal()

getExternal(string  $attr) : mixed

Get the specified attribute of this object.

Parameters

string $attr

The attribute to read.

Returns

mixed —

The value of this attribute.

getSingle()

getSingle(string  $attr) : mixed

Get the specified attribute of this object and ensure that only a single value is being returned.

Parameters

string $attr

The attribute to read.

Returns

mixed —

The value of this attribute.

toHash()

toHash(array  $attrs = array(), boolean  $single = true) : array|\PEAR_Error

Convert the object attributes to a hash.

Parameters

array $attrs

The attributes to return.

boolean $single

Should only a single attribute be returned?

Returns

array|\PEAR_Error —

The hash representing this object.

save()

save(array  $info) : NULL

Saves object information. This may either create a new entry or modify an existing entry.

Please note that fields with multiple allowed values require the callee to provide the full set of values for the field. Any old values that are not resubmitted will be considered to be deleted.

Parameters

array $info

The information about the object.

Throws

\Horde_Kolab_Server_Exception

If saving the data failed.

Returns

NULL

delete()

delete() : NULL

Delete this object.

Throws

\Horde_Kolab_Server_Exception

If deleting the object failed.

Returns

NULL

generateId()

generateId(array  $info) : string

Generates an ID for the given information.

Parameters

array $info

Returns

string —

The ID.

prepareObjectInformation()

prepareObjectInformation(array  $info) : \NULL.

Distill the server side object information to save.

Parameters

array $info

Throws

\Horde_Kolab_Server_Exception

If the given information contains errors.

Returns

\NULL.

getActions()

getActions() : array

Returns the set of actions supported by this object type.

Returns

array —

An array of supported actions.