summaryrefslogtreecommitdiff
path: root/app/ExternalLink/BaseLinkProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-30 20:38:20 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-30 20:38:20 -0500
commit5c92f467867b43034b9e66b46b3b465ba9db655c (patch)
treecb0855ea64d8bba3abe4dfe978c5dbabb745911d /app/ExternalLink/BaseLinkProvider.php
parentec66a779c9158830fe4bb0f96a44eadfe697ef00 (diff)
Add external links for tasks with plugin api
Diffstat (limited to 'app/ExternalLink/BaseLinkProvider.php')
-rw-r--r--app/ExternalLink/BaseLinkProvider.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/ExternalLink/BaseLinkProvider.php b/app/ExternalLink/BaseLinkProvider.php
new file mode 100644
index 00000000..749cda94
--- /dev/null
+++ b/app/ExternalLink/BaseLinkProvider.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace Kanboard\ExternalLink;
+
+use Kanboard\Core\Base;
+
+/**
+ * Base Link Provider
+ *
+ * @package externalLink
+ * @author Frederic Guillot
+ */
+abstract class BaseLinkProvider extends Base
+{
+ /**
+ * User input
+ *
+ * @access protected
+ * @var string
+ */
+ protected $userInput = '';
+
+ /**
+ * Set text entered by the user
+ *
+ * @access public
+ * @param string $input
+ */
+ public function setUserTextInput($input)
+ {
+ $this->userInput = trim($input);
+ }
+}