SORT_DESC
SORT_DESC
Sort by memo description.
Mnemo Base Class.
listMemos(\constant $sortby = self::SORT_DESC, \constant $sortdir = self::SORT_ASCEND) : array
Retrieves the current user's note list from storage. This function will also sort the resulting list, if requested.
\constant | $sortby | The field by which to sort. (self::SORT_DESC, self::SORT_NOTEPAD, self::SORT_MOD_DATE) |
\constant | $sortdir | The direction by which to sort. (self::SORT_ASC, self::SORT_DESC) |
A list of the requested notes.
getMemo(string $notepad, string $noteId, string $passphrase = null) : array
Retrieves a specific note from storage.
string | $notepad | The notepad to retrieve the note from. |
string | $noteId | The Id of the note to retrieve. |
string | $passphrase | A passphrase with which this note was supposed to be encrypted. |
The note.
listNotepads(boolean $owneronly = false, integer $permission = \Horde_Perms::SHOW) : array
Lists all notepads a user has access to.
This method takes the $conf['share']['hidden'] setting into account. If this setting is enabled, even if requesting permissions different than SHOW, it will only return calendars that the user owns or has SHOW permissions for. For checking individual calendar's permissions, use hasPermission() instead.
boolean | $owneronly | Only return memo lists that this user owns? Defaults to false. |
integer | $permission | The permission to filter notepads by. |
The memo lists.
getDefaultNotepad(integer $permission = \Horde_Perms::SHOW) : string
Returns the default notepad for the current user at the specified permissions level.
integer | $permission | Horde_Perms constant for permission level required. |
The notepad identifier, or null if none.
getSyncNotepads(boolean $prune = false) : array
Returns the notepads that should be used for syncing.
boolean | $prune | Remove notepads ids from the sync list that no longer exist. The values are pruned after the results are passed back to the client to give sync clients a chance to remove their entries. |
An array of notepad ids.