Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 function __construct()
 {
     $this->defImg = \Sb\Helpers\BookHelper::getDefaultImage();
 }