diff options
Diffstat (limited to 'plugins/Calendar/Helper/CalendarHelper.php')
-rw-r--r-- | plugins/Calendar/Helper/CalendarHelper.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/Calendar/Helper/CalendarHelper.php b/plugins/Calendar/Helper/CalendarHelper.php new file mode 100644 index 00000000..5807b669 --- /dev/null +++ b/plugins/Calendar/Helper/CalendarHelper.php @@ -0,0 +1,31 @@ +<?php + +namespace Kanboard\Plugin\Calendar\Helper; + +use Kanboard\Core\Base; + +/** + * Calendar Helper + * + * @package Kanboard\Plugin\Calendar\Helper + * @author Frederic Guillot + */ +class CalendarHelper extends Base +{ + /** + * Render calendar component + * + * @param string $checkUrl + * @param string $saveUrl + * @return string + */ + public function render($checkUrl, $saveUrl) + { + $params = array( + 'checkUrl' => $checkUrl, + 'saveUrl' => $saveUrl, + ); + + return '<div class="js-calendar" data-params=\''.json_encode($params, JSON_HEX_APOS).'\'></div>'; + } +} |