mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 13:46:14 +02:00
correct visibiity of methds inherited from BaseController
This commit is contained in:
parent
62d3015509
commit
76c5c55635
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user