메소드 | 설명 | |
---|---|---|
countMemos ( ) : integer | Returns the number of notes in notepads that the current user owns. | |
getDefaultNotepad ( integer $permission = Horde_Perms::SHOW ) : string | Returns the default notepad for the current user at the specified permissions level. | |
getLabel ( $notepad ) : string | Returns the label to be used for a notepad. | |
getMemo ( string $notepad, string $noteId, string $passphrase = null ) : array | Retrieves a specific note from storage. | |
getNotePreview ( array $note ) : string | Get preview text for a note (the first 20 lines or so). | |
getPassphrase ( string $id ) : string | Returns a note's passphrase for symmetric encryption from the session cache. | |
getSyncNotepads ( boolean $prune = false ) : array | Returns the notepads that should be used for syncing. | |
getUserName ( $uid ) : string | Returns the real name, if available, of a user. | |
hasPermission ( string $permission ) : mixed | Returns the specified permission for the current user. | |
initialize ( ) | Initial app setup code. | |
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. | |
listNotepads ( boolean $owneronly = false, integer $permission = Horde_Perms::SHOW ) : array | Lists all notepads a user has access to. | |
storePassphrase ( string $id, string $passphrase ) : boolean | Stores a note's passphrase for symmetric encryption in the session cache. |
메소드 | 설명 | |
---|---|---|
_rsortByDesc ( array $a, array $b ) : integer | Comparison function for reverse sorting notes by description. | |
_rsortByModDate ( array $a, array $b ) : integer | Comparison function for reverse sorting notes by modification date. | |
_rsortByNotepad ( array $a, array $b ) : integer | Comparison function for reverse sorting notes by notepad name. | |
_sortByDesc ( array $a, array $b ) : integer | Comparison function for sorting notes by description. | |
_sortByModDate ( array $a, array $b ) : integer | Comparison function for sorting notes by modification date. | |
_sortByNotepad ( array $a, array $b ) : integer | Comparison function for sorting notes by notepad name. |
public static countMemos ( ) : integer | ||
리턴 | integer | The number of notes that the user owns. |
public static getDefaultNotepad ( integer $permission = Horde_Perms::SHOW ) : string | ||
$permission | integer | Horde_Perms constant for permission level required. |
리턴 | string | The notepad identifier, or null if none. |
public static getNotePreview ( array $note ) : string | ||
$note | array | The note array |
리턴 | string | A few lines of the note for previews or tooltips. |
public static getPassphrase ( string $id ) : string | ||
$id | string | A note id. |
리턴 | string | The passphrase, if set. |
public static getSyncNotepads ( boolean $prune = false ) : array | ||
$prune | boolean | 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. |
리턴 | array | An array of notepad ids. |
public static getUserName ( $uid ) : string | ||
리턴 | string | The real name |
public static hasPermission ( string $permission ) : mixed | ||
$permission | string | A permission, currently only 'max_notes'. |
리턴 | mixed | The value of the specified permission. |
public static initialize ( ) |
public static listMemos ( constant $sortby = self::SORT_DESC, constant $sortdir = self::SORT_ASCEND ) : array | ||
$sortby | constant | The field by which to sort. (self::SORT_DESC, self::SORT_NOTEPAD, self::SORT_MOD_DATE) |
$sortdir | constant | The direction by which to sort. (self::SORT_ASC, self::SORT_DESC) |
리턴 | array | A list of the requested notes. |