Officier
extends Model
in package
Officier Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- setPremium() : void
- Set premium access to the current user
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —setPremium()
Set premium access to the current user
public
setPremium(int $user_id, int $price, string $officier, int $time_to_add) : void
Parameters
- $user_id : int
- $price : int
- $officier : string
- $time_to_add : int
Return values
void —setNewDb()
Creates a new Database object
private
setNewDb() : void