Property | Type | Description | |
---|---|---|---|
$_charset | string | Charset | |
$_column | Horde_Db_Adapter_Base_Column | Column definition of body column. | |
$_db | Horde_Db_Adapter | The database connection object. |
Method | Description | |
---|---|---|
__construct ( string $notepad, array $params = [] ) | Construct a new SQL 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. |
Method | Description | |
---|---|---|
_add ( string $noteId, string $desc, string $body, string $tags ) : string | Adds a note to the backend storage. | |
_buildNote ( array $row, string $passphrase = null ) : array | ||
_delete ( $noteId ) : string | Deletes a note permanently. | |
_deleteAll ( ) : array | Deletes all notes from the current notepad. | |
_generateId ( ) : string | Generates a local note ID. | |
_modify ( string $noteId, string $desc, string $body, string $tags ) | 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 | ||
return | array | An array of uids that have been removed. |
protected _generateId ( ) : string | ||
return | string | A new note ID. |
public retrieve ( ) |
protected Horde_Db_Adapter_Base_Column $_column | ||
return | Horde_Db_Adapter_Base_Column |