public function __construct() { $this->setBaseDirectory(BASE_PATH); $this->setBaseUrl(BASE_URL); $this->setDefaultImage(\Sb\Helpers\BookHelper::getDefaultImage()); // Set context param user $userId = \Sb\Authentification\Service\AuthentificationSvc::getInstance()->getConnectedUserId(); if ($userId) { $user = \Sb\Db\Dao\UserDao::getInstance()->get($userId); $this->setConnectedUser($user); } }
function __construct() { $this->defImg = \Sb\Helpers\BookHelper::getDefaultImage(); }