correct visibiity of methds inherited from BaseController

This commit is contained in:
zebardy 2019-11-23 13:24:32 +00:00
parent 62d3015509
commit 76c5c55635

View File

@ -18,7 +18,7 @@ class BaseController
#fclose($fp); #fclose($fp);
} }
private function render($response, $page, $data = []) protected function render($response, $page, $data = [])
{ {
$container = $this->AppContainer; $container = $this->AppContainer;
@ -65,7 +65,7 @@ class BaseController
return $this->AppContainer->view->render($response, $page, $data); return $this->AppContainer->view->render($response, $page, $data);
} }
private function renderPage($response, $page, $data = []) protected function renderPage($response, $page, $data = [])
{ {
$container = $this->AppContainer; $container = $this->AppContainer;
$container->view->set('userentitiesForSidebar', $this->getDatabase()->userentities()->where('show_in_sidebar_menu = 1')->orderBy('name')); $container->view->set('userentitiesForSidebar', $this->getDatabase()->userentities()->where('show_in_sidebar_menu = 1')->orderBy('name'));
@ -90,29 +90,29 @@ class BaseController
return $this->render($response, $page, $data); return $this->render($response, $page, $data);
} }
private function getDatabaseService() protected function getDatabaseService()
{ {
return DatabaseService::getInstance(); return DatabaseService::getInstance();
} }
private function getDatabase() protected function getDatabase()
{ {
return $this->getDatabaseService()->GetDbConnection(); return $this->getDatabaseService()->GetDbConnection();
} }
private function getLocalizationService() protected function getLocalizationService()
{ {
return LocalizationService::getInstance(GROCY_CULTURE); return LocalizationService::getInstance(GROCY_CULTURE);
} }
private function getApplicationservice() protected function getApplicationservice()
{ {
return ApplicationService::getInstance(); return ApplicationService::getInstance();
} }
private $userfieldsService = null; private $userfieldsService = null;
private function getUserfieldsService() protected function getUserfieldsService()
{ {
if($this->userfieldsService == null) if($this->userfieldsService == null)
{ {