diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-28 11:31:54 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-28 11:31:54 -0400 |
commit | ab48a09f0d674b703467975b376c5ac7352670ae (patch) | |
tree | 99fbb0cf719acee8c500622d498bd7f6375b62a1 /app/Controller | |
parent | 82b5b491bec94cb3d40a5820fbef9959435309be (diff) |
Rename controllers
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/AvatarFileController.php (renamed from app/Controller/AvatarFile.php) | 8 | ||||
-rw-r--r-- | app/Controller/CaptchaController.php (renamed from app/Controller/Captcha.php) | 4 | ||||
-rw-r--r-- | app/Controller/ConfigController.php (renamed from app/Controller/Config.php) | 12 | ||||
-rw-r--r-- | app/Controller/CurrencyController.php (renamed from app/Controller/Currency.php) | 10 | ||||
-rw-r--r-- | app/Controller/DocumentationController.php (renamed from app/Controller/Doc.php) | 6 | ||||
-rw-r--r-- | app/Controller/FeedController.php (renamed from app/Controller/Feed.php) | 4 | ||||
-rw-r--r-- | app/Controller/ICalendarController.php (renamed from app/Controller/Ical.php) | 6 | ||||
-rw-r--r-- | app/Controller/SearchController.php (renamed from app/Controller/Search.php) | 12 |
8 files changed, 31 insertions, 31 deletions
diff --git a/app/Controller/AvatarFile.php b/app/Controller/AvatarFileController.php index 1891a2fc..0e2ed1bb 100644 --- a/app/Controller/AvatarFile.php +++ b/app/Controller/AvatarFileController.php @@ -8,10 +8,10 @@ use Kanboard\Core\Thumbnail; /** * Avatar File Controller * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class AvatarFile extends BaseController +class AvatarFileController extends BaseController { /** * Display avatar page @@ -36,7 +36,7 @@ class AvatarFile extends BaseController $this->flash->failure(t('Unable to upload the file.')); } - $this->response->redirect($this->helper->url->to('AvatarFile', 'show', array('user_id' => $user['id']))); + $this->response->redirect($this->helper->url->to('AvatarFileController', 'show', array('user_id' => $user['id']))); } /** @@ -48,7 +48,7 @@ class AvatarFile extends BaseController $user = $this->getUser(); $this->avatarFile->remove($user['id']); $this->userSession->refresh($user['id']); - $this->response->redirect($this->helper->url->to('AvatarFile', 'show', array('user_id' => $user['id']))); + $this->response->redirect($this->helper->url->to('AvatarFileController', 'show', array('user_id' => $user['id']))); } /** diff --git a/app/Controller/Captcha.php b/app/Controller/CaptchaController.php index f6c717b3..43b2f823 100644 --- a/app/Controller/Captcha.php +++ b/app/Controller/CaptchaController.php @@ -7,10 +7,10 @@ use Gregwar\Captcha\CaptchaBuilder; /** * Captcha Controller * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class Captcha extends BaseController +class CaptchaController extends BaseController { /** * Display captcha image diff --git a/app/Controller/Config.php b/app/Controller/ConfigController.php index abf6565c..a5af0246 100644 --- a/app/Controller/Config.php +++ b/app/Controller/ConfigController.php @@ -3,12 +3,12 @@ namespace Kanboard\Controller; /** - * Config controller + * Config Controller * - * @package controller + * @package Kanboard/Controller * @author Frederic Guillot */ -class Config extends BaseController +class ConfigController extends BaseController { /** * Display the about page @@ -61,7 +61,7 @@ class Config extends BaseController $this->flash->failure(t('Unable to save your settings.')); } - $this->response->redirect($this->helper->url->to('config', $redirect)); + $this->response->redirect($this->helper->url->to('ConfigController', $redirect)); } /** @@ -177,7 +177,7 @@ class Config extends BaseController $this->checkCSRFParam(); $this->config->optimizeDatabase(); $this->flash->success(t('Database optimization done.')); - $this->response->redirect($this->helper->url->to('config', 'index')); + $this->response->redirect($this->helper->url->to('ConfigController', 'index')); } /** @@ -193,6 +193,6 @@ class Config extends BaseController $this->config->regenerateToken($type.'_token'); $this->flash->success(t('Token regenerated.')); - $this->response->redirect($this->helper->url->to('config', $type)); + $this->response->redirect($this->helper->url->to('ConfigController', $type)); } } diff --git a/app/Controller/Currency.php b/app/Controller/CurrencyController.php index 872d6929..5a0fac37 100644 --- a/app/Controller/Currency.php +++ b/app/Controller/CurrencyController.php @@ -3,12 +3,12 @@ namespace Kanboard\Controller; /** - * Currency controller + * Currency Controller * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class Currency extends BaseController +class CurrencyController extends BaseController { /** * Display all currency rates and form @@ -42,7 +42,7 @@ class Currency extends BaseController if ($valid) { if ($this->currency->create($values['currency'], $values['rate'])) { $this->flash->success(t('The currency rate have been added successfully.')); - return $this->response->redirect($this->helper->url->to('currency', 'index')); + return $this->response->redirect($this->helper->url->to('CurrencyController', 'index')); } else { $this->flash->failure(t('Unable to add this currency rate.')); } @@ -66,6 +66,6 @@ class Currency extends BaseController $this->flash->failure(t('Unable to save your settings.')); } - $this->response->redirect($this->helper->url->to('currency', 'index')); + $this->response->redirect($this->helper->url->to('CurrencyController', 'index')); } } diff --git a/app/Controller/Doc.php b/app/Controller/DocumentationController.php index 5caf5f5f..379e3dab 100644 --- a/app/Controller/Doc.php +++ b/app/Controller/DocumentationController.php @@ -7,10 +7,10 @@ use Parsedown; /** * Documentation Viewer * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class Doc extends BaseController +class DocumentationController extends BaseController { public function show() { @@ -71,7 +71,7 @@ class Doc extends BaseController */ public function replaceMarkdownUrl(array $matches) { - return '('.$this->helper->url->to('doc', 'show', array('file' => str_replace('.markdown', '', $matches[1]))).')'; + return '('.$this->helper->url->to('DocumentationController', 'show', array('file' => str_replace('.markdown', '', $matches[1]))).')'; } /** diff --git a/app/Controller/Feed.php b/app/Controller/FeedController.php index 7554a499..e453ecb9 100644 --- a/app/Controller/Feed.php +++ b/app/Controller/FeedController.php @@ -7,10 +7,10 @@ use Kanboard\Core\Controller\AccessForbiddenException; /** * Atom/RSS Feed controller * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class Feed extends BaseController +class FeedController extends BaseController { /** * RSS feed for a user diff --git a/app/Controller/Ical.php b/app/Controller/ICalendarController.php index 091ea5f4..78ea4d67 100644 --- a/app/Controller/Ical.php +++ b/app/Controller/ICalendarController.php @@ -12,12 +12,12 @@ use Kanboard\Model\Task as TaskModel; use Eluceo\iCal\Component\Calendar as iCalendar; /** - * iCalendar controller + * iCalendar Controller * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class Ical extends BaseController +class ICalendarController extends BaseController { /** * Get user iCalendar diff --git a/app/Controller/Search.php b/app/Controller/SearchController.php index a092cba6..88718cf7 100644 --- a/app/Controller/Search.php +++ b/app/Controller/SearchController.php @@ -5,12 +5,12 @@ namespace Kanboard\Controller; use Kanboard\Filter\TaskProjectsFilter; /** - * Search controller + * Search Controller * - * @package controller + * @package Kanboard\Controller * @author Frederic Guillot */ -class Search extends BaseController +class SearchController extends BaseController { public function index() { @@ -19,7 +19,7 @@ class Search extends BaseController $nb_tasks = 0; $paginator = $this->paginator - ->setUrl('search', 'index', array('search' => $search)) + ->setUrl('SearchController', 'index', array('search' => $search)) ->setMax(30) ->setOrder('tasks.id') ->setDirection('DESC'); @@ -39,7 +39,7 @@ class Search extends BaseController $this->response->html($this->helper->layout->app('search/index', array( 'values' => array( 'search' => $search, - 'controller' => 'search', + 'controller' => 'SearchController', 'action' => 'index', ), 'paginator' => $paginator, @@ -56,7 +56,7 @@ class Search extends BaseController $this->response->html($this->helper->layout->app('search/activity', array( 'values' => array( 'search' => $search, - 'controller' => 'search', + 'controller' => 'SearchController', 'action' => 'activity', ), 'title' => t('Search in activity stream').($nb_events > 0 ? ' ('.$nb_events.')' : ''), |