* [DEV] Minor improvements

This commit is contained in:
nuxsmin
2016-11-30 22:23:00 +01:00
committed by Rubén Domínguez
parent db6f58e642
commit cd3dd55446
11 changed files with 76 additions and 24 deletions

View File

@@ -35,6 +35,8 @@ use SP\Core\Exceptions\SPException;
use SP\Core\DiFactory;
use SP\Core\Template;
use SP\Core\UI\ThemeIconsBase;
use SP\DataModel\ProfileData;
use SP\DataModel\UserData;
use SP\Http\JsonResponse;
/**
@@ -79,6 +81,14 @@ abstract class ControllerBase
* @var JsonResponse
*/
protected $Json;
/**
* @var UserData
*/
protected $UserData;
/**
* @var ProfileData
*/
protected $UserProfileData;
/**
* Constructor
@@ -243,8 +253,11 @@ abstract class ControllerBase
{
global $timeStart;
$this->UserData = Session::getUserData();
$this->UserProfileData = Session::getUserProfile();
$this->view->assign('timeStart', $timeStart);
$this->view->assign('icons', $this->icons);
$this->view->assign('SessionUserData', Session::getUserData());
$this->view->assign('SessionUserData', $this->UserData);
}
}