saveNote(
'Test Note', // Titel
'test,note', // Tags
'This is a test note.' // Beschreibung
);
/* Eine bereits existierende Notiz überschreiben */
$simpy->saveNote(
'Updated Test Note', // Titel
'test,note,updated', // Tags
'This is an updated test note.', // Beschreibung
$note->getId() // Eindeutige ID
);
/* Suche nach den 10 letzten hinzugefügten Notizen */
$noteSet = $simpy->getNotes(null, 10);
/* Zeige diese Notizen an */
foreach ($noteSet as $note) {
echo '';
echo $note->getTitle();
echo '
';
echo $note->getDescription();
echo '
';
echo $note->getTags();
echo '
';
}
/* Suche nach allen Notizen mit 'PHP' im Titel */
$noteSet = $simpy->getNotes('title:PHP');
/* Suche nach allen Notizen mit 'PHP' im Titel und ohne
'framework' in der Beschreibung */
$noteSet = $simpy->getNotes('+title:PHP -description:framework');
/* Löschen einer Notiz */
$simpy->deleteNote($note->getId());
]]>