Hall and Session dao updates

This commit is contained in:
Markines16 2021-04-29 10:21:44 +02:00 committed by GitHub
parent ceca74f8e9
commit 49ab2fb2d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<?php
require_once('../assets/php/dao.php');
include_once('hall_dto.php');
include_once('../panel_manager/includes/hall.php');
class HallDAO extends DAO {
@ -42,7 +42,7 @@
//Create a new Hall Data Transfer Object.
public function loadHall($number, $idcinema, $numrows, $numcolumns){
return new HallDTO($number, $idcinema, $numrows, $numcolumns);
return new Hall($number, $idcinema, $numrows, $numcolumns);
}
//Edit Hall.

View File

@ -1,6 +1,6 @@
<?php
require_once('../assets/php/dao.php');
include_once('session_dto.php');
include_once('../panel_manager/includes/session.php');
class SessionDAO extends DAO {
//Constructor:
@ -98,7 +98,7 @@
//Create a new Session Data Transfer Object.
public function loadSession( $id, $idfilm, $idhall, $idcinema, $date, $startTime, $seatPrice, $format){
return new SessionDTO( $id, $idfilm, $idhall, $idcinema, $date, $startTime, $seatPrice, $format);
return new Session( $id, $idfilm, $idhall, $idcinema, $date, $startTime, $seatPrice, $format);
}
}