function __construct() { parent::__construct(new IModel(), new IView()); include_once "models/AgentModel.php"; include_once "modelviews/AgentModelView.php"; $this->agentViewModel = new AgentModelView(); }
public function __construct(\IModel $amodel, \IView $aview) { parent::__construct($amodel, $aview); require_once "models/AdminModel.php"; require_once "modelviews/AdminModelView.php"; $this->model = new AdminModel(); $this->viewmodel = new AdminModelView(); $this->db = new Database(); //check if this person is an administrator from level 3 upwards $this->createAdministrator(); }
function __construct() { parent::__construct(new IModel(), new IView()); include_once "entities/plane.php"; include_once "models/PlaneModel.php"; include_once "modelviews/PlaneModelView.php"; $this->db = new Database(); $this->db->createFields("planeID", "varchar(40)", "primary key"); $this->db->createFields("noofseats", "int", "not null"); $this->db->createFields("desc_note", "text", ""); $this->db->createFields("name", "varchar(40)", "not null"); $this->db->createFields("status", "int", "default 0"); $this->db->createTable("tbl_plane"); $this->modelView = new PlaneModelView(); }
function __construct() { parent::__construct(new IModel(), new IView()); include_once "entities/seat.php"; include_once "models/SeatModel.php"; include_once "modelviews/SeatModelView.php"; $this->db = new Database(); $this->db->createFields("planeID", "varchar(40)", "not null"); $this->db->createFields("seatNo", "int", ""); $this->db->createFields("type", "varchar(40)", ""); $this->db->createFields("price", "double", "default 0.0"); $this->db->createFields("desc_note", "text", ""); $this->db->createFields("seatID", "varchar(40)", "primary key"); $this->db->createFields("status", "int", "default 0"); $this->db->createTable("tbl_seat"); $this->modelview = new SeatModelView(); }
function __construct() { parent::__construct(new IModel(), new IView()); $this->db = new Database(); $this->db->createFields("flightID", "varchar(40)", " not null"); $this->db->createFields("booking_date", "varchar(40)", " not null"); $this->db->createFields("seatID", "varchar(40)", " not null"); $this->db->createFields("planeID", "varchar(40)", " not null"); $this->db->createFields("booking_id", "varchar(40)", " primary key"); $this->db->createFields("who_book", "varchar(40)", " "); $this->db->createFields("type", "varchar(40)", " not null"); $this->db->createFields("payment_id", "varchar(40)", ""); $this->db->createFields("children", "int", ""); $this->db->createFields("adults", "int", ""); $this->db->createFields("status", "int", ""); $this->db->createTable("tbl_booking"); include_once "modelviews/FlightModelView.php"; $this->viewModel = new FlightModelView(); }
function __construct() { parent::__construct(new IModel(), new IView()); include_once "entities/Flight.php"; include_once "models/FlightModel.php"; include_once "modelviews/FlightModelView.php"; $this->db = new Database(); $this->db->createFields("from_where", "varchar(40)", "not null"); $this->db->createFields("to_where", "varchar(40)", "not null"); $this->db->createFields("landingDate", "varchar(40)", "not null"); $this->db->createFields("BoardDate", "varchar(40)", "not null"); $this->db->createFields("LandingTime", "varchar(30)", "not null"); $this->db->createFields("BoardingTime", "varchar(30)", "not null"); $this->db->createFields("noofstop", "int", "default 0"); $this->db->createFields("price", "double", "default 0.0"); $this->db->createFields("id", "varchar(40)", "primary key"); $this->db->createFields("seats", "int", "default 0"); $this->db->createFields("planeID", "varchar(40)", "not null"); $this->db->createFields("status", "int", "default 0"); $this->db->createTable("tbl_flight"); $this->flightModelView = new FlightModelView(); }
function __construct(\IModel $amodel, \IView $aview) { parent::__construct($amodel, $aview); }