MembreManager
extends BaseManager
in package
Tags
Table of Contents
- INSEB = "('"
- INSEF = "')"
- INSEP = "', '"
- $conn : mixed
- $database : mixed
- $iconn : int
- $jsonFile : string
- $password : mixed
- $server : mixed
- $tab : mixed
- $username : mixed
- __construct() : mixed
- __destruct() : mixed
- checkPassword() : mixed
- delete() : mixed
- insert() : mixed
- maxid() : int
- object2array() : array<string|int, mixed>
- selectAll() : mixed
- selectByPseudo() : mixed
- error() : mixed
- sql() : mixed
- sql2membreArray() : array<string|int, mixed>
- sqlarr() : array<string|int, mixed>|null
- sqlint() : int
- sqloo() : object
- sqlstring() : string
- close() : void
- connexion() : mixed
- export() : mixed
- initFrom() : void
- open() : mixed
- reconnexion() : void
Constants
INSEB
public
mixed
INSEB
= "('"
INSEF
public
mixed
INSEF
= "')"
INSEP
public
mixed
INSEP
= "', '"
Properties
$conn
private
static mixed
$conn
$database
private
mixed
$database
$iconn
private
static int
$iconn
$jsonFile
private
static string
$jsonFile
= DOWN . "/connexion.json"
$password
private
mixed
$password
$server
private
mixed
$server
$tab
private
mixed
$tab
= 'membre'
$username
private
mixed
$username
Methods
__construct()
public
__construct([string|null $infile = null ]) : mixed
Parameters
- $infile : string|null = null
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —checkPassword()
public
checkPassword(mixed $pseudo, mixed $password) : mixed
Parameters
- $pseudo : mixed
- $password : mixed
Return values
mixed —delete()
public
delete(mixed $id) : mixed
Parameters
- $id : mixed
Return values
mixed —insert()
public
insert(Membre $membre) : mixed
Parameters
- $membre : Membre
Return values
mixed —maxid()
public
maxid() : int
Return values
int —object2array()
public
static object2array(object $objet) : array<string|int, mixed>
Parameters
- $objet : object
Tags
Return values
array<string|int, mixed> —$array
selectAll()
public
selectAll([int $maxtick = 1000 ]) : mixed
Parameters
- $maxtick : int = 1000
Return values
mixed —selectByPseudo()
public
selectByPseudo(mixed $pseudo) : mixed
Parameters
- $pseudo : mixed
Return values
mixed —error()
protected
error() : mixed
Return values
mixed —sql()
protected
static sql(string $query) : mixed
Parameters
- $query : string
Return values
mixed —sql2membreArray()
protected
static sql2membreArray(mixed $result[, int $maxtick = 1000 ]) : array<string|int, mixed>
Parameters
- $result : mixed
- $maxtick : int = 1000
Return values
array<string|int, mixed> —sqlarr()
protected
static sqlarr(string $query) : array<string|int, mixed>|null
Parameters
- $query : string
Return values
array<string|int, mixed>|null —sqlint()
protected
static sqlint(string $query) : int
Parameters
- $query : string
Return values
int —sqloo()
protected
static sqloo(string $query) : object
Parameters
- $query : string
Return values
object —sqlstring()
protected
static sqlstring(string $query) : string
Parameters
- $query : string
Return values
string —close()
private
close() : void
Return values
void —connexion()
private
connexion() : mixed
Return values
mixed —export()
private
export() : mixed
Return values
mixed —initFrom()
private
initFrom(string $infile) : void
Parameters
- $infile : string
Return values
void —open()
private
open() : mixed
Return values
mixed —reconnexion()
private
reconnexion() : void