From 002b59b66408d9db672d51334a02eaddd3d6f987 Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Tue, 13 Apr 2021 21:11:05 +0200 Subject: [PATCH] Delete listSessions.php --- panel_manager/includes/listSessions.php | 55 ------------------------- 1 file changed, 55 deletions(-) delete mode 100644 panel_manager/includes/listSessions.php diff --git a/panel_manager/includes/listSessions.php b/panel_manager/includes/listSessions.php deleted file mode 100644 index 81fcaae..0000000 --- a/panel_manager/includes/listSessions.php +++ /dev/null @@ -1,55 +0,0 @@ -array = array(); - } - //Methods: - - //Returns the whole session array - public function getArray() { - return $this->array; - } - - //Returns the value i from the array - public function getiArray($i) { - if($i < $size){ - return $this->array($i); - } else { - return null; - } - - } - - //Update the array with new values - public function filterList($cinema, $hall, $date) { - - $date = date('Y-m-d', strtotime( $date ) ); - - $bd = new sessionDAO('complucine'); - - if($bd){ - $selectSession = $bd->selectSession($cinema, $hall, null, $date); - $selectSession->data_seek(0); - $this->size = 0; - while ($fila = $selectSession->fetch_assoc()) { - $this->array[]= new SessionDTO($fila['id'], $fila['idfilm'], $fila['idhall'], $fila['idcinema'], $fila['date'], date('H:i', strtotime( $fila['start_time'])) , $fila['seat_price'], $fila['format']); - $this->size++; - } - mysqli_free_result($selectSession); - } - } - -} - -?> -