Overview
Previous  Next

Gladius offers a PHP object oriented programming interface designed with minimalist principles.

The API consists of two classes with their relative methods and members.

Gladius class
This is the main database engine class; you will need to have one instance of the Gladius class to query the database(s). It is suggested to use multiple Gladius instances if dealing with multiple databases instead of continuosly switching the selected databases; this approach would grant considerable performance gains.

Methods

Gladius::Escape($string, $magic_quotes)

Gladius::Query($sql)

Gladius::SelectDB($dbname)

Members

Gladius::affected_rows

Gladius::database

Gladius::errno

Gladius::errstr

Gladius::fetch_mode

Gladius::insert_id

Gladius_Resultset class
This is the resultset class; only SELECT, SHOW and DESCRIBE statements return this type of object; this object cannot exist as stand-alone and is internally linked to the Gladius class instance which generated it. You should unset the Gladius_Resultset object when finished with it.

Methods

Gladius_Resultset::Close()

Gladius_Resultset::FetchField($fieldOffset = -1)

Gladius_Resultset::Fields($field = null)

Gladius_Resultset::GetAll() (deprecated)

Gladius_Resultset::GetArray($nRows = -1)

Gladius_Resultset::GetRow()

Gladius_Resultset::GetRows($nRows = -1) (deprecated)

Gladius_Resultset::Move($rowNumber)

Gladius_Resultset::MoveFirst()

Gladius_Resultset::MoveLast()

Gladius_Resultset::MoveNext()

Gladius_Resultset::RecordCount()

Members

Gladius_Resultset::errno

Gladius_Resultset::BOF

Gladius_Resultset::EOF

Gladius_Resultset::fetch_mode