Метод | Описание | |
---|---|---|
__construct ( string $notepad, array $params = [] ) | Construct a new Kolab storage object. | |
get ( string $noteId, string $passphrase = null ) : array | Retrieves one note from the backend. | |
getByUID ( string $uid, string $passphrase = null ) : array | Retrieves one note from the backend by UID. | |
retrieve ( ) | Retrieves all of the notes of the current notepad from the backend. | |
synchronize ( mixed $token = false ) | Synchronize with the Kolab backend. |
Метод | Описание | |
---|---|---|
_add ( string $noteId, string $desc, string $body, string $tags ) : string | Adds a note to the backend storage. | |
_buildNote ( array $note, string $passphrase = null ) : array | Build a note based on data array | |
_buildObject ( string $noteId, string $desc, string $body, string $tags ) : object | Converts a note hash to a Kolab hash. | |
_delete ( $noteId ) : string | Deletes a note permanently. | |
_deleteAll ( ) : array | Deletes all notes from the current notepad. | |
_generateId ( ) : string | Generates a local note ID. | |
_getData ( boolean $force = false ) : Horde_Kolab_Storage_Data | Return the Kolab data handler for the current notepad. | |
_getDataForNotepad ( string $notepad ) : Horde_Kolab_Storage_Data | Return the Kolab data handler for the specified notepad. | |
_modify ( string $noteId, string $desc, string $body, string $tags ) : string | Modifies an existing note. | |
_move ( string $noteId, string $newNotepad ) : string | Moves a note to a new notepad. |
public __construct ( string $notepad, array $params = [] ) | ||
$notepad | string | The name of the notepad to load/save notes from. |
$params | array | The connection parameters |
protected _deleteAll ( ) : array | ||
Результат | array | An array of uids that have been removed. |
protected _generateId ( ) : string | ||
Результат | string | A new note ID. |
protected _getDataForNotepad ( string $notepad ) : Horde_Kolab_Storage_Data | ||
$notepad | string | The notepad name. |
Результат | Horde_Kolab_Storage_Data | The data handler. |
public retrieve ( ) |
public synchronize ( mixed $token = false ) | ||
$token | mixed | A value indicating the last synchronization point, if available. |