From 83f4264ccba5dd47c7698c8ed92b5086ba95ddc8 Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Mon, 3 May 2021 12:37:10 +0200 Subject: [PATCH] Re actualizado hall.php y session.php por favor, no los volvais a sobrescribir y pongais de nuevo todos los dto y sus interfaces --- assets/php/common/hall.php | 44 ++++++++++++++++++++++++++++++ assets/php/common/hall_dao.php | 4 +-- assets/php/common/session.php | 49 ++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 assets/php/common/hall.php create mode 100644 assets/php/common/session.php diff --git a/assets/php/common/hall.php b/assets/php/common/hall.php new file mode 100644 index 0000000..a9f638a --- /dev/null +++ b/assets/php/common/hall.php @@ -0,0 +1,44 @@ +_number = $number; + $this->_idcinema = $idcinema; + $this->_numRows = $numRows; + $this->_numCol = $numCol; + } + + //Methods: + public static function getListHalls($cinema){ + $bd = new HallDAO('complucine'); + if($bd ) + return $bd->getAllHalls($cinema); + return ""; + } + + //Getters && Setters: + public function setNumber($number){ $this->_number = $number; } + public function getNumber(){ return $this->_number; } + + public function setIdcinema($idcinema){ $this->_idcinema = $idcinema; } + public function getIdcinema(){ return $this->_idcinema; } + + public function setNumRows($numRows){ $this->_numRows = $numRows; } + public function getNumRows(){ return $this->_numRows; } + + public function setNumCol($numCol){ $this->_numCol = $numCol; } + public function getNumCol(){ return $this->_numCol; } + + + + } +?> \ No newline at end of file diff --git a/assets/php/common/hall_dao.php b/assets/php/common/hall_dao.php index 4c85a7c..f1276d2 100644 --- a/assets/php/common/hall_dao.php +++ b/assets/php/common/hall_dao.php @@ -1,6 +1,6 @@ _id = $id; + $this->_idfilm = $idfilm; + $this->_idhall = $idhall; + $this->_idcinema = $idcinema; + $this->_date = $date; + $this->_startTime = $startTime; + $this->_seatPrice = $seatPrice; + $this->_format = $format; + } + + 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($idhall){ $this->_idhall = $idhall; } + public function getIdhall(){ return $this->_idhall; } + + public function setIdcinema($cinema){ $this->_idcinema = $idcinema; } + public function getIdcinema(){ return $this->_idcinema; } + + 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