Hall and Session dao updates
This commit is contained in:
parent
ceca74f8e9
commit
49ab2fb2d1
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user