TicketManager
extends BaseManager
in package
Tags
Table of Contents
- INSEB = "('"
- INSEF = "')"
- INSEP = "', '"
- SELECT = "SELECT * FROM ticket"
- TABLE = 'ticket'
- WHERE = " WHERE id="
- $conn : mixed
- $database : mixed
- $iconn : int
- $jsonFile : string
- $password : mixed
- $server : mixed
- $username : mixed
- __construct() : mixed
- __destruct() : mixed
- authoRate() : int
- authorId() : int
- authorName() : string
- count() : int
- delete() : mixed
- deleteAuthor() : mixed
- hide() : string
- hiRateId() : int
- insert() : mixed
- insertAuthor() : mixed
- loveMeDo() : string
- maxcid() : int
- maxid() : int
- numbArt() : int
- object2array() : array<string|int, mixed>
- rate() : int
- select() : Ticket
- selectAll() : mixed
- selectAuthor() : mixed
- selectAuthorNoms() : array<string|int, mixed>
- selectAuthors() : mixed
- selectByAuthor() : mixed
- sheLovesMe() : int
- update() : mixed
- error() : mixed
- sql() : 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
= "', '"
SELECT
private
mixed
SELECT
= "SELECT * FROM ticket"
TABLE
private
mixed
TABLE
= 'ticket'
WHERE
private
mixed
WHERE
= " WHERE id="
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
$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 —authoRate()
public
authoRate(int $cid) : int
Parameters
- $cid : int
Return values
int —authorId()
public
authorId(Ticket $ticket) : int
Parameters
- $ticket : Ticket
Return values
int —authorName()
public
authorName(Ticket $ticket) : string
Parameters
- $ticket : Ticket
Tags
Return values
string —count()
public
count() : int
Return values
int —delete()
public
delete(int $id) : mixed
Parameters
- $id : int
Return values
mixed —deleteAuthor()
public
deleteAuthor(mixed $id) : mixed
Parameters
- $id : mixed
Return values
mixed —hide()
public
hide(int $id) : string
Parameters
- $id : int
Return values
string —hiRateId()
public
hiRateId() : int
Return values
int —insert()
public
insert(Ticket $ticket) : mixed
Parameters
- $ticket : Ticket
Return values
mixed —insertAuthor()
public
insertAuthor(Cuisinier $cuisinier) : mixed
Parameters
- $cuisinier : Cuisinier
Return values
mixed —loveMeDo()
public
loveMeDo(int $id) : string
Parameters
- $id : int
Return values
string —maxcid()
public
maxcid() : int
Return values
int —maxid()
public
maxid() : int
Return values
int —numbArt()
public
numbArt(int $cid) : int
Parameters
- $cid : 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
rate()
public
rate(int $id) : int
Parameters
- $id : int
Return values
int —select()
public
select(int $id) : Ticket
Parameters
- $id : int
Return values
Ticket —selectAll()
public
selectAll([int $maxtick = 1000 ]) : mixed
Parameters
- $maxtick : int = 1000
Return values
mixed —selectAuthor()
public
selectAuthor(int $id) : mixed
Parameters
- $id : int
Return values
mixed —selectAuthorNoms()
public
selectAuthorNoms([int $maxtick = 1000 ]) : array<string|int, mixed>
Parameters
- $maxtick : int = 1000
Return values
array<string|int, mixed> —selectAuthors()
public
selectAuthors([int $maxtick = 1000 ]) : mixed
Parameters
- $maxtick : int = 1000
Return values
mixed —selectByAuthor()
public
selectByAuthor(int $cid[, int $maxtick = 1000 ]) : mixed
Parameters
- $cid : int
- $maxtick : int = 1000
Return values
mixed —sheLovesMe()
public
sheLovesMe(int $id) : int
Parameters
- $id : int
Tags
Return values
int —update()
public
update(int $id, Ticket $ticket) : mixed
Parameters
- $id : int
- $ticket : Ticket
Return values
mixed —error()
protected
error() : mixed
Return values
mixed —sql()
protected
static sql(string $query) : mixed
Parameters
- $query : string
Return values
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