PHP Класс 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.
Автор: Gunnar Wrobel ([email protected])
Наследование: implements ArrayAccess
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
_convertBrief ( array $data ) Generate the internal mock data representation from an abbreviated mock data format.

Описание методов

__construct() публичный Метод

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() публичный Метод

Indicates if a message is considered deleted.
public _notDeleted ( array $message ) : boolean
$message array The message information.
Результат boolean True if the message has not been marked as deleted.

appendMessage() публичный Метод

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.
Результат mixed True or the UID of the new message in case the backend supports UIDPLUS.

arrayKeys() публичный Метод

Returns the array keys of this array.
public arrayKeys ( ) : array
Результат array The keys of this array.

deleteAnnotation() публичный Метод

public deleteAnnotation ( $folder, $annotation )

deleteMessages() публичный Метод

public deleteMessages ( $folder, $uids )

deleteUserPermissions() публичный Метод

public deleteUserPermissions ( $folder, $user )

expunge() публичный Метод

public expunge ( $folder )

fetchBodypart() публичный Метод

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.
Результат resource The body part, as a stream resource.

fetchComplete() публичный Метод

public fetchComplete ( $folder, $uid )

fetchStructure() публичный Метод

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.
Результат array An array of message structures parsed into Horde_Mime_Part instances.

getAnnotation() публичный Метод

public getAnnotation ( $folder, $annotation )

getPermissions() публичный Метод

public getPermissions ( $folder )

getUids() публичный Метод

public getUids ( $folder )

getUserPermissions() публичный Метод

public getUserPermissions ( $folder, $user )

hasAnnotation() публичный Метод

public hasAnnotation ( $folder, $annotation )

hasPermissions() публичный Метод

public hasPermissions ( $folder )

hasUserPermissions() публичный Метод

public hasUserPermissions ( $folder, $user )

moveMessage() публичный Метод

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

offsetExists() публичный Метод

Tests if the value of the given offset exists in this array.
public offsetExists ( string | integer $offset ) : boolean
$offset string | integer The array offset.
Результат boolean True if the offset exists.

offsetGet() публичный Метод

Returns the value of the given offset in this array.
public offsetGet ( string | integer $offset ) : mixed
$offset string | integer The array offset.
Результат mixed The data value.

offsetSet() публичный Метод

Sets the value of the given offset in this array.
public offsetSet ( string | integer $offset, $value ) : null
$offset string | integer The array offset.
Результат null

offsetUnset() публичный Метод

Removes the given offset exists from this array.
public offsetUnset ( string | integer $offset ) : null
$offset string | integer The array offset.
Результат null

select() публичный Метод

public select ( $folder )

setAnnotation() публичный Метод

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

setUserPermissions() публичный Метод

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

status() публичный Метод

public status ( $folder )