summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-11-07 21:26:55 -0500
committerFrederic Guillot <fred@kanboard.net>2016-11-07 21:26:55 -0500
commit83f529008a77758afcdc25959637011c3b835324 (patch)
tree8c6d26030ed0e6e72e98751c7aa227ab92715ed7 /app/Core
parente5c63f4ecc78e144659bf83947a19d996f60b490 (diff)
Handle modification of external tasks
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/ExternalTask/ExternalTaskProviderInterface.php23
1 files changed, 20 insertions, 3 deletions
diff --git a/app/Core/ExternalTask/ExternalTaskProviderInterface.php b/app/Core/ExternalTask/ExternalTaskProviderInterface.php
index 7706a773..932912d9 100644
--- a/app/Core/ExternalTask/ExternalTaskProviderInterface.php
+++ b/app/Core/ExternalTask/ExternalTaskProviderInterface.php
@@ -22,12 +22,22 @@ interface ExternalTaskProviderInterface
* Retrieve task from external system or cache
*
* @access public
- * @throws \Kanboard\Core\ExternalTask\AccessForbiddenException
- * @throws \Kanboard\Core\ExternalTask\NotFoundException
+ * @throws \Kanboard\Core\ExternalTask\ExternalTaskException
* @param string $uri
* @return ExternalTaskInterface
*/
- public function retrieve($uri);
+ public function fetch($uri);
+
+ /**
+ * Save external task to another system
+ *
+ * @throws \Kanboard\Core\ExternalTask\ExternalTaskException
+ * @param string $uri
+ * @param array $formValues
+ * @param array $formErrors
+ * @return bool
+ */
+ public function save($uri, array $formValues, array &$formErrors);
/**
* Get task import template name
@@ -44,6 +54,13 @@ interface ExternalTaskProviderInterface
public function getCreationFormTemplate();
/**
+ * Get modification form template
+ *
+ * @return string
+ */
+ public function getModificationFormTemplate();
+
+ /**
* Get task view template name
*
* @return string