diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-12 14:01:39 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-12 14:01:39 -0700 |
commit | 4bb422b41fd995cb67c41ad4b7ba155a84c6f1eb (patch) | |
tree | 24368daa9fdd4881563aca74ab05322da2791fd5 /app/Core | |
parent | ad6f898134a3aadc38571f5c8e11d37f43a953e3 (diff) |
Render a dropdown menu for external task providers
Diffstat (limited to 'app/Core')
-rw-r--r-- | app/Core/ExternalTask/ExternalTaskManager.php | 10 | ||||
-rw-r--r-- | app/Core/ExternalTask/ExternalTaskProviderInterface.php | 16 |
2 files changed, 26 insertions, 0 deletions
diff --git a/app/Core/ExternalTask/ExternalTaskManager.php b/app/Core/ExternalTask/ExternalTaskManager.php index 102ec459..87a46b71 100644 --- a/app/Core/ExternalTask/ExternalTaskManager.php +++ b/app/Core/ExternalTask/ExternalTaskManager.php @@ -55,4 +55,14 @@ class ExternalTaskManager return array(); } + + /** + * Get all providers + * + * @return ExternalTaskProviderInterface[] + */ + public function getProviders() + { + return $this->providers; + } } diff --git a/app/Core/ExternalTask/ExternalTaskProviderInterface.php b/app/Core/ExternalTask/ExternalTaskProviderInterface.php index f67f7552..5678efb8 100644 --- a/app/Core/ExternalTask/ExternalTaskProviderInterface.php +++ b/app/Core/ExternalTask/ExternalTaskProviderInterface.php @@ -19,6 +19,22 @@ interface ExternalTaskProviderInterface public function getName(); /** + * Get provider icon + * + * @access public + * @return string + */ + public function getIcon(); + + /** + * Get label for adding a new task + * + * @access public + * @return string + */ + public function getMenuAddLabel(); + + /** * Retrieve task from external system or cache * * @access public |