$_memos
$_memos : array
Array holding the current memo list. Each array entry is a hash describing a memo. The array is indexed numerically by memo ID.
Mnemo storage implementation for Horde's Horde_Db database abstraction layer.
Copyright 2001-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (ASL). If you did not receive this file, see http://www.horde.org/licenses/apache.
get(string $noteId, string $passphrase = null) : array
Retrieves one note from the backend.
| string | $noteId | The ID of the note to retrieve. |
| string | $passphrase | A passphrase with which this note was supposed to be encrypted. |
The array of note attributes.
getByUID(string $uid, string $passphrase = null) : array
Retrieves one note from the backend by UID.
| string | $uid | The UID of the note to retrieve. |
| string | $passphrase | A passphrase with which this note was supposed to be encrypted. |
The array of note attributes.
add(string $desc, string $body, array|string $tags = '', string $passphrase = null, string $uid = null) : string
Adds a note to the backend storage.
| string | $desc | The first line of the note. |
| string | $body | The whole note body. |
| array|string | $tags | The tags of the note. |
| string | $passphrase | The passphrase to encrypt the note with. |
| string | $uid | The note's UID. |
The ID of the new note.
modify(string $noteId, string $desc, string $body, string $tags = '', string $passphrase = null)
Modifies an existing note.
| string | $noteId | The note to modify. |
| string | $desc | The first line of the note. |
| string | $body | The whole note body. |
| string | $tags | The tags of the note. |
| string | $passphrase | The passphrase to encrypt the note with. |
_add(string $noteId, string $desc, string $body, array|string $tags, string $uid) : string
Adds a note to the backend storage.
| string | $noteId | The ID of the new note. |
| string | $desc | The first line of the note. |
| string | $body | The whole note body. |
| array|string | $tags | The tags of the note. |
| string | $uid | The note's UID. |
The unique ID of the new note.
_modify(string $noteId, string $desc, string $body, string $tags) : string
Modifies an existing note.
| string | $noteId | The note to modify. |
| string | $desc | The first line of the note. |
| string | $body | The whole note body. |
| string | $tags | The tags of the note. |
The note's UID.
_decryptBody(string $body, string $id, string $passphrase) : boolean
Tries to decrypt the note body.
| string | $body | The note body. Will be decrypted if possible, or set to an exception if decryption failed. |
| string | $id | The note ID. |
| string | $passphrase | An optional encryption password. |
Whether this was an encrypted note.
_buildNote(array $row, string $passphrase = null, boolean $raw = false) : array
| array | $row | Hash of the note data, db keys. |
| string | $passphrase | The encryption passphrase. |
| boolean | $raw | Return the raw body, don't try to decrypt. |
a Note hash.