PHP Class Horde_Kolab_Storage_Driver_Mock_Data, horde

Copyright 2010-2016 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.
Inheritance: implements ArrayAccess
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $data ) Constructor.
_notDeleted ( array $message ) : boolean Indicates if a message is considered deleted.
appendMessage ( string $folder, resource $msg ) : mixed Appends a message to the given folder.
arrayKeys ( ) : array Returns the array keys of this array.
deleteAnnotation ( $folder, $annotation )
deleteMessages ( $folder, $uids )
deleteUserPermissions ( $folder, $user )
expunge ( $folder )
fetchBodypart ( string $folder, array $uid, array $id ) : resource Retrieves a bodypart for the given message ID and mime part ID.
fetchComplete ( $folder, $uid )
fetchStructure ( string $folder, array $uids ) : array Retrieves the messages for the given message ids.
getAnnotation ( $folder, $annotation )
getPermissions ( $folder )
getUids ( $folder )
getUserPermissions ( $folder, $user )
hasAnnotation ( $folder, $annotation )
hasPermissions ( $folder )
hasUserPermissions ( $folder, $user )
moveMessage ( $uid, $old_folder, $new_folder )
offsetExists ( string | integer $offset ) : boolean Tests if the value of the given offset exists in this array.
offsetGet ( string | integer $offset ) : mixed Returns the value of the given offset in this array.
offsetSet ( string | integer $offset, $value ) : null Sets the value of the given offset in this array.
offsetUnset ( string | integer $offset ) : null Removes the given offset exists from this array.
select ( $folder )
setAnnotation ( $folder, $annotation, $value )
setUserPermissions ( $folder, $user, $acl )
status ( $folder )

Private Methods

Méthode Description
_convertBrief ( array $data ) Generate the internal mock data representation from an abbreviated mock data format.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $data )
$data array 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).

_notDeleted() public méthode

Indicates if a message is considered deleted.
public _notDeleted ( array $message ) : boolean
$message array The message information.
Résultat boolean True if the message has not been marked as deleted.

appendMessage() public méthode

Appends a message to the given folder.
public appendMessage ( string $folder, resource $msg ) : mixed
$folder string The folder to append the message(s) to.
$msg resource The message to append.
Résultat mixed True or the UID of the new message in case the backend supports UIDPLUS.

arrayKeys() public méthode

Returns the array keys of this array.
public arrayKeys ( ) : array
Résultat array The keys of this array.

deleteAnnotation() public méthode

public deleteAnnotation ( $folder, $annotation )

deleteMessages() public méthode

public deleteMessages ( $folder, $uids )

deleteUserPermissions() public méthode

public deleteUserPermissions ( $folder, $user )

expunge() public méthode

public expunge ( $folder )

fetchBodypart() public méthode

Retrieves a bodypart for the given message ID and mime part ID.
public fetchBodypart ( string $folder, array $uid, array $id ) : resource
$folder string The folder to fetch the messages from.
$uid array The message UID.
$id array The mime part ID.
Résultat resource The body part, as a stream resource.

fetchComplete() public méthode

public fetchComplete ( $folder, $uid )

fetchStructure() public méthode

Retrieves the messages for the given message ids.
public fetchStructure ( string $folder, array $uids ) : array
$folder string The folder to fetch the messages from.
$uids array The message UIDs.
Résultat array An array of message structures parsed into Horde_Mime_Part instances.

getAnnotation() public méthode

public getAnnotation ( $folder, $annotation )

getPermissions() public méthode

public getPermissions ( $folder )

getUids() public méthode

public getUids ( $folder )

getUserPermissions() public méthode

public getUserPermissions ( $folder, $user )

hasAnnotation() public méthode

public hasAnnotation ( $folder, $annotation )

hasPermissions() public méthode

public hasPermissions ( $folder )

hasUserPermissions() public méthode

public hasUserPermissions ( $folder, $user )

moveMessage() public méthode

public moveMessage ( $uid, $old_folder, $new_folder )

offsetExists() public méthode

Tests if the value of the given offset exists in this array.
public offsetExists ( string | integer $offset ) : boolean
$offset string | integer The array offset.
Résultat boolean True if the offset exists.

offsetGet() public méthode

Returns the value of the given offset in this array.
public offsetGet ( string | integer $offset ) : mixed
$offset string | integer The array offset.
Résultat mixed The data value.

offsetSet() public méthode

Sets the value of the given offset in this array.
public offsetSet ( string | integer $offset, $value ) : null
$offset string | integer The array offset.
Résultat null

offsetUnset() public méthode

Removes the given offset exists from this array.
public offsetUnset ( string | integer $offset ) : null
$offset string | integer The array offset.
Résultat null

select() public méthode

public select ( $folder )

setAnnotation() public méthode

public setAnnotation ( $folder, $annotation, $value )

setUserPermissions() public méthode

public setUserPermissions ( $folder, $user, $acl )

status() public méthode

public status ( $folder )