function __construct()
 {
     global $configs;
     $this->baseUrl = $configs["BLUETEAM_BASE_URL"];
     $this->agentBaseUrl = $configs["BLUETEAM_AGENT_BASE_URL"];
     $this->url = rtrim($this->baseUrl, "/") . $_SERVER[REQUEST_URI];
     global $logger;
     $this->logger = $logger;
     $this->logger->debug("BaseController started");
     if (isset($_SESSION["uuid"])) {
         $this->uuid = $_SESSION["uuid"];
         $this->username = $_SESSION["username"];
         $this->firstName = $_SESSION['first_name'];
         $this->lastName = $_SESSION['last_name'];
     }
     $DAOFactory = new DAOFactory();
     $this->employeeDAO = $DAOFactory->getEmployeesDAO();
     $this->workerDAO = $DAOFactory->getWorkersDAO();
     $this->serviceRequestDAO = $DAOFactory->getServiceRequestDAO();
     $this->agentDAO = $DAOFactory->getAgentDAO();
     $this->getInTouchDAO = $DAOFactory->getInTouchDAO();
     $this->userDAO = $DAOFactory->getUsersDAO();
     $this->serviceDAO = $DAOFactory->getServicesDAO();
     $this->process();
 }
Example #2
0
 public function __construct()
 {
     $DAOFactory = new DAOFactory();
     $this->workersDAO = $DAOFactory->getWorkersDAO();
 }