Rename Api classes

This commit is contained in:
Frederic Guillot
2016-05-16 21:07:29 -04:00
parent 4514bc1d4b
commit b1e2ca00ce
21 changed files with 104 additions and 79 deletions

49
app/Api/AppApi.php Normal file
View File

@@ -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();
}
}