From 83f529008a77758afcdc25959637011c3b835324 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 7 Nov 2016 21:26:55 -0500 Subject: Handle modification of external tasks --- .../ExternalTask/ExternalTaskProviderInterface.php | 23 +++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'app/Core') 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 @@ -43,6 +53,13 @@ interface ExternalTaskProviderInterface */ public function getCreationFormTemplate(); + /** + * Get modification form template + * + * @return string + */ + public function getModificationFormTemplate(); + /** * Get task view template name * -- cgit v1.2.3