XG Proyect

Options extends Model
in package

Options Class

Table of Contents

$db  : Database
Contains the Database instance
__construct()  : mixed
Constructor
__destruct()  : mixed
Destructor
deleteOption()  : bool
Delete an option
getAllOptions()  : mysqli_result
Get all options from the table
getOption()  : string|null
Get a single option from the table
writeOption()  : bool
Insert/Update a new option
setNewDb()  : void
Creates a new Database object

Properties

Methods

__construct()

Constructor

public __construct() : mixed
Return values
mixed

__destruct()

Destructor

public __destruct() : mixed
Return values
mixed

deleteOption()

Delete an option

public deleteOption(string $option) : bool
Parameters
$option : string
Return values
bool

getAllOptions()

Get all options from the table

public getAllOptions() : mysqli_result
Return values
mysqli_result

getOption()

Get a single option from the table

public getOption(string $option) : string|null
Parameters
$option : string
Return values
string|null

writeOption()

Insert/Update a new option

public writeOption(string $option, string $value) : bool
Parameters
$option : string
$value : string
Return values
bool

setNewDb()

Creates a new Database object

private setNewDb() : void
Return values
void

Search results