diff --git a/panel_manager/includes/room_dao.php b/panel_manager/includes/room_dao.php new file mode 100644 index 0000000..7661e82 --- /dev/null +++ b/panel_manager/includes/room_dao.php @@ -0,0 +1,39 @@ +mysqli, $sql) or die ('Error into query database'); + + return $resul; + } + + //Create a new Room Data Transfer Object. + public function loadRoom($id, $idcinema, $numCol, $numRows){ + return new RoomDTO($id, $idcinema, $numCol, $numRows); + } + + } + +?> \ No newline at end of file diff --git a/panel_manager/includes/room_dto.php b/panel_manager/includes/room_dto.php new file mode 100644 index 0000000..612b5ef --- /dev/null +++ b/panel_manager/includes/room_dto.php @@ -0,0 +1,37 @@ +_id = $id; + $this->_idcinema = $idcinema; + $this->_numCol = $numCol; + $this->_numRows = $numRows; + } + + //Methods: + + //Getters && Setters: + public function setId($id){ $this->_id = $id; } + public function getId(){ return $this->_id; } + + public function setIdcinema($idcinema){ $this->_idcinema = $idcinema; } + public function getIdcinema(){ return $this->_idcinema; } + + public function setNumCol($numCol){ $this->_numCol = $numCol; } + public function getNumCol(){ return $this->_numCol; } + + public function setNumRows($numRows){ $this->_numRows = $numRows; } + public function getNumRows(){ return $this->_numRows; } + + } +?> \ No newline at end of file diff --git a/panel_manager/includes/room_dto_interface.php b/panel_manager/includes/room_dto_interface.php new file mode 100644 index 0000000..d220dfa --- /dev/null +++ b/panel_manager/includes/room_dto_interface.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/panel_manager/includes/session_dao.php b/panel_manager/includes/session_dao.php new file mode 100644 index 0000000..945cac0 --- /dev/null +++ b/panel_manager/includes/session_dao.php @@ -0,0 +1,39 @@ +mysqli, $sql) or die ('Error into query database'); + + return $resul; + } + + //Create a new Session Data Transfer Object. + public function loadSession( $id, $idfilm, $idhall, $date, $startTime, $seatPrice, $format){ + return new SessionDTO( $id, $idfilm, $idhall, $date, $startTime, $seatPrice, $format); + } + + } + +?> \ No newline at end of file diff --git a/panel_manager/includes/session_dto.php b/panel_manager/includes/session_dto.php new file mode 100644 index 0000000..10c8a28 --- /dev/null +++ b/panel_manager/includes/session_dto.php @@ -0,0 +1,51 @@ +_id = $id; + $this->_idfilm = $idfilm; + $this->_idhall = $idhall; + $this->_date = $date; + $this->_startTime = $startTime; + $this->_seatPrice = $seatPrice; + $this->_format = $format; + } + + //Methods: + + //Getters && Setters: + public function setId($id){ $this->_id = $id; } + public function getId(){ return $this->_id; } + + public function setIdfilm($idfilm){ $this->_idfilm = $idfilm; } + public function getIdfilm(){ return $this->_idfilm; } + + public function setIdhall($film){ $this->_idhall = $idhall; } + public function getIdhall(){ return $this->_idhall; } + + public function setDate($date){ $this->_date = $date; } + public function getDate(){ return $this->_date; } + + public function setStartTime($startTime){ $this->_startTime = $startTime; } + public function getStartTime(){ return $this->_startTime; } + + public function setSeatPrice($seatPrice){ $this->_seatPrice = $seatPrice; } + public function getSeatPrice(){ return $this->_seatPrice; } + + public function setFormat($format){ $this->_format = $format; } + public function getFormat(){ return $this->_format; } + + } +?> \ No newline at end of file diff --git a/panel_manager/includes/session_dto_interface.php b/panel_manager/includes/session_dto_interface.php new file mode 100644 index 0000000..7095583 --- /dev/null +++ b/panel_manager/includes/session_dto_interface.php @@ -0,0 +1,18 @@ + \ No newline at end of file