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.
상속: implements ArrayAccess
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__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 )