diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-16 21:07:29 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-16 21:07:29 -0400 |
commit | b1e2ca00ce7375ffcbe5e927135c8892036e6bd6 (patch) | |
tree | 07ce453261f6493de7c901cfd8b4f0d9af85556d /app/Api/AppApi.php | |
parent | 4514bc1d4b4abff23902e46da76e70f13a3647eb (diff) |
Rename Api classes
Diffstat (limited to 'app/Api/AppApi.php')
-rw-r--r-- | app/Api/AppApi.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app/Api/AppApi.php b/app/Api/AppApi.php new file mode 100644 index 00000000..865ba21a --- /dev/null +++ b/app/Api/AppApi.php @@ -0,0 +1,49 @@ +<?php + +namespace Kanboard\Api; + +use Kanboard\Core\Base; + +/** + * App API controller + * + * @package Kanboard\Api + * @author Frederic Guillot + */ +class AppApi extends Base +{ + public function getTimezone() + { + return $this->timezone->getCurrentTimezone(); + } + + public function getVersion() + { + return APP_VERSION; + } + + public function getDefaultTaskColor() + { + return $this->color->getDefaultColor(); + } + + public function getDefaultTaskColors() + { + return $this->color->getDefaultColors(); + } + + public function getColorList() + { + return $this->color->getList(); + } + + public function getApplicationRoles() + { + return $this->role->getApplicationRoles(); + } + + public function getProjectRoles() + { + return $this->role->getProjectRoles(); + } +} |