/**
  * @param BasicEntity $entityInstance
  */
 function __construct($entityInstance)
 {
     $this->entityInstance = $entityInstance;
     $this->assetsBaseURL = get_assets_base_url();
 }
Beispiel #2
0
<?php

use fti\adv_db\entity\Professor;
use fti\adv_db\entity\Secretary;
use fti\adv_db\entity\Student;
require_once dirname(__FILE__) . '/includes/loader.php';
$baseURL = get_assets_base_url();
$path = '';
$actor = $_SESSION[LOGGED_IN_USER_ROLE];
switch ($actor) {
    case Student::TABLE_NAME:
        $path = $baseURL . 'studentResults/list.php';
        break;
    case Professor::TABLE_NAME:
        $path = $baseURL . 'result/filter.php';
        break;
    case Secretary::TABLE_NAME:
        $path = $baseURL . 'university/list.php';
        break;
}
?>

<!DOCTYPE html>
<html>
<head>
    <title>Logged in: Profesor filani</title>

    <meta name="viewport" content="width = device-width, initial-scale=1.0">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/custom.css" rel="stylesheet">
    <link href="css/font-awesome.min.css" rel="stylesheet">