summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiddeke <martin@middeke.de>2015-12-23 00:32:34 +0100
committermiddeke <martin@middeke.de>2015-12-23 00:32:34 +0100
commit89e28f89b3c1c4adead0354c92df82f0a215c5ab (patch)
treebaecf8cb4ae8d39dcbced2d383fe83a48dc1af2d
parent050d69091822641dabd0ded1b6023b7ef9f90311 (diff)
Updated documentation for MetaData
-rw-r--r--doc/plugin-metadata.markdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/plugin-metadata.markdown b/doc/plugin-metadata.markdown
index 0249e60c..1f4bfa2b 100644
--- a/doc/plugin-metadata.markdown
+++ b/doc/plugin-metadata.markdown
@@ -7,7 +7,7 @@ Metadata are custom fields, it's a key/value table.
For example your plugin can store external information for a task or new settings for a project.
Basically that allow you to extend the default fields without having to create new tables.
-Attach metadata to tasks
+Attach metadata to tasks and remove them
------------------------
```php
@@ -23,6 +23,9 @@ $this->taskMetadata->exists($task_id, 'my_plugin_variable');
// Create or update metadata for the task
$this->taskMetadata->save($task_id, ['my_plugin_variable' => 'something']);
+
+// Remove a metadata from a project
+$this->projectMetadata->remove($project_id, my_plugin_variable);
```
Metadata types