PHP 클래스 Horde_Kolab_Storage_List_Query_List_Cache_Synchronization, 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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Horde_Kolab_Storage_Driver $driver, Horde_Kolab_Storage_Folder_Types $types, Horde_Kolab_Storage_List_Query_List_Defaults $defaults ) Constructor.
_synchronize ( Horde_Kolab_Storage_Folder_Namespace $namespace, array $folder_list, $annotations ) : null Synchronize based on the given folder list.
getDuplicateDefaults ( ) : array Return any default folder duplicates.
setCache ( Horde_Kolab_Storage_List_Cache $cache ) Set the list cache.
setDefault ( array $folder, string | boolean $previous = false ) Set the specified folder as default for its current type.
synchronize ( ) Synchronize the query data with the information from the backend.
updateAfterCreateFolder ( string $folder, string $type = null ) : null Update the listener after creating a new folder.
updateAfterDeleteFolder ( string $folder ) : null Update the listener after deleting folder.
updateAfterRenameFolder ( string $old, string $new ) : null Update the listener after renaming a folder.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Kolab_Storage_Driver $driver, Horde_Kolab_Storage_Folder_Types $types, Horde_Kolab_Storage_List_Query_List_Defaults $defaults )
$driver Horde_Kolab_Storage_Driver The driver to access the backend.
$types Horde_Kolab_Storage_Folder_Types Handler of folder types.
$defaults Horde_Kolab_Storage_List_Query_List_Defaults

_synchronize() 공개 메소드

Synchronize based on the given folder list.
public _synchronize ( Horde_Kolab_Storage_Folder_Namespace $namespace, array $folder_list, $annotations ) : null
$namespace Horde_Kolab_Storage_Folder_Namespace The namespace handler
$folder_list array The list of folders.
리턴 null

getDuplicateDefaults() 공개 메소드

Return any default folder duplicates.
public getDuplicateDefaults ( ) : array
리턴 array The list of duplicate default folders accessible to the current user.

setCache() 공개 메소드

Set the list cache.
public setCache ( Horde_Kolab_Storage_List_Cache $cache )
$cache Horde_Kolab_Storage_List_Cache The reference to the cache that should reveive any updates.

setDefault() 공개 메소드

Set the specified folder as default for its current type.
public setDefault ( array $folder, string | boolean $previous = false )
$folder array The folder data.
$previous string | boolean The previous default folder or false if there was none.

synchronize() 공개 메소드

Synchronize the query data with the information from the backend.
public synchronize ( )

updateAfterCreateFolder() 공개 메소드

Update the listener after creating a new folder.
public updateAfterCreateFolder ( string $folder, string $type = null ) : null
$folder string The path of the folder that has been created.
$type string An optional type for the folder.
리턴 null

updateAfterDeleteFolder() 공개 메소드

Update the listener after deleting folder.
public updateAfterDeleteFolder ( string $folder ) : null
$folder string The path of the folder that has been deleted.
리턴 null

updateAfterRenameFolder() 공개 메소드

Update the listener after renaming a folder.
public updateAfterRenameFolder ( string $old, string $new ) : null
$old string The old path of the folder.
$new string The new path of the folder.
리턴 null