示例#1
0
 public function save(\Models\HallModel $model)
 {
     $query = 'INSERT INTO halls (seating, venue_id, hallName) VALUE (?, ?, ?)';
     $params = [$model->getSeating(), $model->getVenue_Id(), $model->getHallName()];
     $this->db->query($query, $params);
     return $this->db->row();
 }
示例#2
0
 public function createHall(\BindingModels\CreateHall $hall)
 {
     $this->headerData();
     $hallName = $hall->getHallName();
     $seating = $hall->getSeating();
     $venueId = $hall->getVenueId();
     $hall = new HallModel($seating, $venueId, $hallName);
     $hall->save();
     $this->view->showView();
     exit;
 }