Property | Type | Description | |
---|---|---|---|
$_backend_id | string | The object ID within the backend. | |
$_content | resource | The content string representing the object data. | |
$_data | array | The object data. | |
$_driver | Horde_Kolab_Storage_Driver | The driver for accessing the backend. | |
$_errors | array | The collection of parse errors (if any). | |
$_folder | string | The folder that holds the object within the backend. | |
$_headers | Horde_Mime_Headers | The MIME headers of the object envelope. | |
$_mime_part_id | string | The ID of the MIME part carrying the object data. | |
$_structure | Horde_Mime_Part | The message structure. | |
$_type | string | The object type. |
Method | Description | |
---|---|---|
create ( Horde_Kolab_Storage_Folder $folder, Horde_Kolab_Storage_Object_Writer $data, string $type ) : boolean | string | Create a new object in the backend. | |
generateUid ( ) : string | Generate a unique object ID. | |
getBackendId ( ) | ||
getContent ( ) : resource | Fetch the raw content representing the object data. | |
getCurrentContent ( ) : resource | Return the current content value representing the object data. This call does not attempt to fetch the content from the backend. | |
getData ( ) : array | Fetch the object data. | |
getHeaders ( ) : Horde_Mime_Headers | Return the MIME headers of the object envelope. | |
getParseErrors ( ) | ||
getType ( ) : string | Return the object type. | |
getUid ( ) : string | Return the UID of the object. If no UID has been set a valid UID will be autogenerated. | |
hasParseErrors ( ) | ||
load ( string $backend_id, Horde_Kolab_Storage_Folder $folder, Horde_Kolab_Storage_Object_Writer $data, Horde_Mime_Part $structure = null ) | Loads the object from the backend. | |
offsetExists ( $offset ) | * ArrayAccess methods. | |
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
save ( Horde_Kolab_Storage_Object_Writer $data ) : boolean | string | Store the modified object in the backend. | |
serialize ( ) : string | Serialization. | |
setContent ( resource $content ) | Set the content representing the object data. | |
setData ( array $data ) | Set the object data. | |
setDriver ( Horde_Kolab_Storage_Driver $driver ) | Set the driver for accessing the backend. | |
unserialize ( string $data ) | Unserialization. |
Method | Description | |
---|---|---|
_appendMessage ( Horde_Mime_Part $message, Horde_Mime_Headers $headers ) : boolean | string | Append a new message. | |
_getDriver ( ) : Horde_Kolab_Storage_Driver | Return the driver for accessing the backend. | |
_getFolder ( ) | ||
_getMimePartId ( ) | ||
addParseError ( $error, $message = '' ) | ||
createEnvelope ( ) : Horde_Mime_Part | Generates a new MIME messages that will wrap a Kolab groupware object. | |
createEnvelopeHeaders ( ) : Horde_Mime_Headers | Generate the headers for the MIME envelope of a Kolab groupware object. | |
createFreshKolabPart ( resource $content ) : Horde_Mime_Part | Embed the Kolab content into a new MIME Part. |
protected _appendMessage ( Horde_Mime_Part $message, Horde_Mime_Headers $headers ) : boolean | string | ||
$message | Horde_Mime_Part | The message. |
$headers | Horde_Mime_Headers | The message headers. |
return | boolean | string | The return value of the append operation. |
protected _getDriver ( ) : Horde_Kolab_Storage_Driver | ||
return | Horde_Kolab_Storage_Driver | The driver. |
public create ( Horde_Kolab_Storage_Folder $folder, Horde_Kolab_Storage_Object_Writer $data, string $type ) : boolean | string | ||
$folder | Horde_Kolab_Storage_Folder | The folder to retrieve the data object from. |
$data | Horde_Kolab_Storage_Object_Writer | The data writer. |
$type | string | The type of object to be stored. |
return | boolean | string | The return value of the append operation. |
protected createEnvelope ( ) : Horde_Mime_Part | ||
return | Horde_Mime_Part | The new MIME message. |
protected createEnvelopeHeaders ( ) : Horde_Mime_Headers | ||
return | Horde_Mime_Headers | The headers for the MIME envelope. |
protected createFreshKolabPart ( resource $content ) : Horde_Mime_Part | ||
$content | resource | The Kolab content. |
return | Horde_Mime_Part | The MIME part that encapsules the Kolab content. |
public generateUid ( ) : string | ||
return | string | The unique ID. |
public getContent ( ) : resource | ||
return | resource | The raw object content. |
public getCurrentContent ( ) : resource | ||
return | resource | The raw object content. |
public getHeaders ( ) : Horde_Mime_Headers | ||
return | Horde_Mime_Headers | The MIME headers. |
public load ( string $backend_id, Horde_Kolab_Storage_Folder $folder, Horde_Kolab_Storage_Object_Writer $data, Horde_Mime_Part $structure = null ) | ||
$backend_id | string | The object ID within the backend. |
$folder | Horde_Kolab_Storage_Folder | The folder to retrieve the data object from. |
$data | Horde_Kolab_Storage_Object_Writer | The data parser. |
$structure | Horde_Mime_Part | The MIME message structure of the object. |
public setContent ( resource $content ) | ||
$content | resource | The object content. |
public setDriver ( Horde_Kolab_Storage_Driver $driver ) | ||
$driver | Horde_Kolab_Storage_Driver | The driver. |
public unserialize ( string $data ) | ||
$data | string | Serialized data. |
protected string $_backend_id | ||
return | string |
protected resource $_content | ||
return | resource |
protected Horde_Kolab_Storage_Driver $_driver | ||
return | Horde_Kolab_Storage_Driver |
protected array $_errors | ||
return | array |
protected string $_folder | ||
return | string |
protected Horde_Mime_Headers $_headers | ||
return | Horde_Mime_Headers |
protected string $_mime_part_id | ||
return | string |
protected Horde_Mime_Part $_structure | ||
return | Horde_Mime_Part |