My Project
dbEvent Class Reference

Static Public Member Functions

static getAllEvents ()
static addEvent ($event)
static getEventByID ($eventID)

Detailed Description

Corresponds to the Event table in the DONATE database. Any method which accesses data from or commits data to the Event table should belong to this class. Methods in this class use mysqli object oriented connections to the database, and perform instance methods on given object to create queries, execute them, and fetch their results.

Author:
Matt Vartanian

Member Function Documentation

static addEvent ( event) [static]

Adds an instance of event to the Event table using an instance of mysqli.

Parameters:
Eventobject $event -contains user-entered event name
Returns:
int $id -last auto_increment value in Event table
static getAllEvents ( ) [static]

Retrieves all records from the Event table using an instance of mysqli.

Returns:
$allEvents associative array corresponding to rows in event table
static getEventByID ( eventID) [static]

Retrieves all records from the Event table using an instance of mysqli.

Returns:
$allEvents associative array corresponding to rows in event table

The documentation for this class was generated from the following file:
 All Data Structures Files Functions