My Project
dbDesignation Class Reference

Static Public Member Functions

static getAllDesignations ()
static addDesignation ($designation)
static getDesignationByID ($designationID)

Detailed Description

Corresponds to the Designation table in the DONATE database. Any method which accesses data from or commits data to the Designation 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 addDesignation ( designation) [static]

Adds an instance of designation to the Designation table using an instance of mysqli.

Parameters:
Designationobject $designation -contains user-entered designation name.
Returns:
int $id -last auto_increment value in Designation table
static getAllDesignations ( ) [static]

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

Returns:
$allDesignations associative array corresponding to rows in designation table
static getDesignationByID ( designationID) [static]

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

Returns:
$allDesignations associative array corresponding to rows in designation table

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