コード例 #1
0
 /**
  * Constructor
  * Checks if we have a valid session and then calls the super constructor.
  */
 function __construct($request)
 {
     // Check if session is valid
     if (LoginHelper::checkSession() == true) {
         parent::__construct($request);
     } else {
         // Session is not valid
         $genericResult = new GenericResult(ERROR_SESSION_INVALID);
         $view = new SimpleView($genericResult);
         $view->render();
         session_destroy();
         die;
     }
 }
コード例 #2
0
 /**
  * Constructor
  * Calls the super constructor
  */
 function __construct($request)
 {
     parent::__construct($request);
 }