Overview

Packages

  • Kolab
    • Storage

Classes

  • Horde_Kolab_Storage_Base
  • Horde_Kolab_Storage_Cache
  • Horde_Kolab_Storage_Cache_Data
  • Horde_Kolab_Storage_Cache_List
  • Horde_Kolab_Storage_Cached
  • Horde_Kolab_Storage_Data_Base
  • Horde_Kolab_Storage_Data_Cached
  • Horde_Kolab_Storage_Data_Decorator_Log
  • Horde_Kolab_Storage_Data_Format_Mime
  • Horde_Kolab_Storage_Data_Modifiable
  • Horde_Kolab_Storage_Data_Old
  • Horde_Kolab_Storage_Data_Parser_Structure
  • Horde_Kolab_Storage_Data_Query_History_Base
  • Horde_Kolab_Storage_Data_Query_History_Cache
  • Horde_Kolab_Storage_Data_Query_Preferences_Base
  • Horde_Kolab_Storage_Data_Query_Preferences_Cache
  • Horde_Kolab_Storage_Decorator_Synchronization
  • Horde_Kolab_Storage_Driver_Base
  • Horde_Kolab_Storage_Driver_Cclient
  • Horde_Kolab_Storage_Driver_Decorator_Base
  • Horde_Kolab_Storage_Driver_Decorator_Log
  • Horde_Kolab_Storage_Driver_Decorator_Timer
  • Horde_Kolab_Storage_Driver_Imap
  • Horde_Kolab_Storage_Driver_Mock
  • Horde_Kolab_Storage_Driver_Mock_Data
  • Horde_Kolab_Storage_Driver_Pear
  • Horde_Kolab_Storage_Driver_Rcube
  • Horde_Kolab_Storage_Exception
  • Horde_Kolab_Storage_Exception_Pear
  • Horde_Kolab_Storage_Factory
  • Horde_Kolab_Storage_Folder_Base
  • Horde_Kolab_Storage_Folder_Decorator_Base
  • Horde_Kolab_Storage_Folder_Decorator_Trigger
  • Horde_Kolab_Storage_Folder_Namespace
  • Horde_Kolab_Storage_Folder_Namespace_Config
  • Horde_Kolab_Storage_Folder_Namespace_Element
  • Horde_Kolab_Storage_Folder_Namespace_Element_Other
  • Horde_Kolab_Storage_Folder_Namespace_Element_Personal
  • Horde_Kolab_Storage_Folder_Namespace_Element_Shared
  • Horde_Kolab_Storage_Folder_Namespace_Element_SharedWithPrefix
  • Horde_Kolab_Storage_Folder_Namespace_Fixed
  • Horde_Kolab_Storage_Folder_Namespace_Imap
  • Horde_Kolab_Storage_Folder_Stamp_Uids
  • Horde_Kolab_Storage_Folder_Type
  • Horde_Kolab_Storage_List_Base
  • Horde_Kolab_Storage_List_Decorator_Cache
  • Horde_Kolab_Storage_List_Decorator_Log
  • Horde_Kolab_Storage_List_Query_Acl_Base
  • Horde_Kolab_Storage_List_Query_Acl_Cache
  • Horde_Kolab_Storage_List_Query_ActiveSync_Base
  • Horde_Kolab_Storage_List_Query_ActiveSync_Cache
  • Horde_Kolab_Storage_List_Query_List_Base
  • Horde_Kolab_Storage_List_Query_List_Cache
  • Horde_Kolab_Storage_List_Query_Share_Base
  • Horde_Kolab_Storage_List_Query_Share_Cache
  • Horde_Kolab_Storage_QuerySet_Base
  • Horde_Kolab_Storage_QuerySet_Cached
  • Horde_Kolab_Storage_QuerySet_Uncached
  • Horde_Kolab_Storage_Synchronization
  • Horde_Kolab_Storage_Translation
  • Horde_Kolab_Storage_Uncached

Interfaces

  • Horde_Kolab_Storage
  • Horde_Kolab_Storage_Data
  • Horde_Kolab_Storage_Data_Format
  • Horde_Kolab_Storage_Data_Parser
  • Horde_Kolab_Storage_Data_Query
  • Horde_Kolab_Storage_Data_Query_History
  • Horde_Kolab_Storage_Data_Query_Preferences
  • Horde_Kolab_Storage_Driver
  • Horde_Kolab_Storage_Folder
  • Horde_Kolab_Storage_Folder_Stamp
  • Horde_Kolab_Storage_List
  • Horde_Kolab_Storage_List_Query
  • Horde_Kolab_Storage_List_Query_Acl
  • Horde_Kolab_Storage_List_Query_ActiveSync
  • Horde_Kolab_Storage_List_Query_List
  • Horde_Kolab_Storage_List_Query_Share
  • Horde_Kolab_Storage_Queriable
  • Horde_Kolab_Storage_Query
  • Horde_Kolab_Storage_QuerySet
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Kolab_Storage_Driver_Mock_Data

Data storage for the mock driver.

Copyright 2010-2012 Horde LLC (http://www.horde.org/)

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

Horde_Kolab_Storage_Driver_Mock_Data implements ArrayAccess
Package: Kolab\Storage
Category: Kolab
License: LGPL 2.1
Author: Gunnar Wrobel wrobel@pardus.de
Link: http://pear.horde.org/index.php?package=Kolab_Storage
Located at Horde/Kolab/Storage/Driver/Mock/Data.php
Methods summary
public
# __construct( array $data )

Constructor.

Constructor.

Parameters

$data
<p>This may be match the internal format used by this class to represent the IMAP mock data or it can be an abbreviated format (@see Horde_Kolab_Storage_Driver_Mock_Data::_setupBrief).</p>
public mixed
# offsetGet( string|integer $offset )

Returns the value of the given offset in this array.

Returns the value of the given offset in this array.

Parameters

$offset
The array offset.

Returns

mixed
The data value.

Implementation of

ArrayAccess::offsetGet()
public null
# offsetSet( string|integer $offset, mi $value )

Sets the value of the given offset in this array.

Sets the value of the given offset in this array.

Parameters

$offset
The array offset.
$value
$offset The array offset.

Returns

null

Implementation of

ArrayAccess::offsetSet()
public boolean
# offsetExists( string|integer $offset )

Tests if the value of the given offset exists in this array.

Tests if the value of the given offset exists in this array.

Parameters

$offset
The array offset.

Returns

boolean
True if the offset exists.

Implementation of

ArrayAccess::offsetExists()
public null
# offsetUnset( string|integer $offset )

Removes the given offset exists from this array.

Removes the given offset exists from this array.

Parameters

$offset
The array offset.

Returns

null

Implementation of

ArrayAccess::offsetUnset()
public array
# arrayKeys( )

Returns the array keys of this array.

Returns the array keys of this array.

Returns

array
The keys of this array.
public
# hasPermissions( mixed $folder )
public
# getPermissions( mixed $folder )
public
# hasUserPermissions( mixed $folder, mixed $user )
public
# getUserPermissions( mixed $folder, mixed $user )
public
# setUserPermissions( mixed $folder, mixed $user, mixed $acl )
public
# deleteUserPermissions( mixed $folder, mixed $user )
public
# hasAnnotation( mixed $folder, mixed $annotation )
public
# getAnnotation( mixed $folder, mixed $annotation )
public
# setAnnotation( mixed $folder, mixed $annotation, mixed $value )
public
# deleteAnnotation( mixed $folder, mixed $annotation )
public
# select( mixed $folder )
public
# status( mixed $folder )
public
# getUids( mixed $folder )
public boolean
# _notDeleted( array $message )

Indicates if a message is considered deleted.

Indicates if a message is considered deleted.

Parameters

$message
The message information.

Returns

boolean
True if the message has not been marked as deleted.
public
# fetchComplete( mixed $folder, mixed $uid )
public array
# fetchStructure( string $folder, array $uids )

Retrieves the messages for the given message ids.

Retrieves the messages for the given message ids.

Parameters

$folder
The folder to fetch the messages from.
$uids
The message UIDs.

Returns

array

An array of message structures parsed into Horde_Mime_Part instances.

public resource|string
# fetchBodypart( string $folder, array $uid, array $id )

Retrieves a bodypart for the given message ID and mime part ID.

Retrieves a bodypart for the given message ID and mime part ID.

Parameters

$folder
The folder to fetch the messages from.
$uid
The message UID.
$id
The mime part ID.

Returns

resource|string
The body part, as a stream resource or string.
public mixed
# appendMessage( string $folder, resource $msg )

Appends a message to the given folder.

Appends a message to the given folder.

Parameters

$folder
The folder to append the message(s) to.
$msg
The message to append.

Returns

mixed

True or the UID of the new message in case the backend supports UIDPLUS.

public
# deleteMessages( mixed $folder, mixed $uids )
public
# moveMessage( mixed $uid, mixed $old_folder, mixed $new_folder )
public
# expunge( mixed $folder )
Constants summary
integer FLAG_DELETED

Flag to indicated a deleted message

Flag to indicated a deleted message

# 1
API documentation generated by ApiGen