Request
extends Entity
in package
Request class
This class maps the requests table.
Table of Contents
Properties
- $author : mixed
- $code : mixed
- $date : mixed
- $id : mixed
- $lastError : string
- $location_global : mixed
- $location_local : mixed
- $message : mixed
- $status : mixed
- $title : mixed
- $to : mixed
- $db : DatabaseEngine
Methods
- __construct() : mixed
- Initializes a new instance
- getDatabase() : DatabaseEngine
- load_from_database() : bool
- Loads the object Request (ie fill the properties) from the database
- load_from_form() : mixed
- Loads the object Request (ie fill the properties) from the $_POST array
- save_to_database() : void
- Saves to database
- setDatabase() : void
Properties
$author
public
mixed
$author
$code
public
mixed
$code
$date
public
mixed
$date
$id
public
mixed
$id
$lastError
public
string
$lastError
= ""
$location_global
public
mixed
$location_global
$location_local
public
mixed
$location_local
$message
public
mixed
$message
$status
public
mixed
$status
$title
public
mixed
$title
$to
public
mixed
$to
$db
private
DatabaseEngine
$db
Methods
__construct()
Initializes a new instance
public
__construct(DatabaseEngine $db[, int $id = null ]) : mixed
Parameters
- $db : DatabaseEngine
- $id : int = null
-
the primary key
getDatabase()
public
getDatabase() : DatabaseEngine
Return values
DatabaseEngineload_from_database()
Loads the object Request (ie fill the properties) from the database
public
load_from_database() : bool
Return values
boolload_from_form()
Loads the object Request (ie fill the properties) from the $_POST array
public
load_from_form() : mixed
save_to_database()
Saves to database
public
save_to_database() : void
setDatabase()
public
setDatabase(DatabaseEngine $db) : void
Parameters
- $db : DatabaseEngine