rest_mediatekdocuments

MyAccessBDD extends AccessBDD
in package

Classe de construction des requêtes SQL hérite de AccessBDD qui contient les requêtes de base

Table of Contents

Properties

$conn  : Connexion

Methods

__construct()  : mixed
constructeur qui appelle celui de la classe mère
demande()  : array<string|int, mixed>|int|null
demande de traitement de la demande
traitementDelete()  : int|null
demande de suppression (delete)
traitementInsert()  : int|null
demande d'ajout (insert)
traitementSelect()  : array<string|int, mixed>|null
demande de recherche
traitementUpdate()  : int|null
demande de modification (update)
deleteCommandeDocument()  : int|null
supprime une commande document
deleteTuplesOneTable()  : int|null
demande de suppression (delete) d'un ou plusieurs tuples dans une table
insertCommandeDocument()  : int|null
insère une commande document (dans commande ET commandedocument)
insertCommandeRevue()  : int|null
insère un abonnement
insertOneTupleOneTable()  : int|null
demande d'ajout (insert) d'un tuple dans une table
selectAbonnementsExpiresBientot()  : array<string|int, mixed>|null
récupère les abonnements qui expirent dans moins de 30 jours
selectAllDvd()  : array<string|int, mixed>|null
récupère toutes les lignes de la table DVD et les tables associées
selectAllLivres()  : array<string|int, mixed>|null
récupère toutes les lignes de la table Livre et les tables associées
selectAllRevues()  : array<string|int, mixed>|null
récupère toutes les lignes de la table Revue et les tables associées
selectCommandesDocument()  : array<string|int, mixed>|null
récupère toutes les commandes d'un livre ou DVD
selectCommandesRevue()  : array<string|int, mixed>|null
récupère tous les abonnements d'une revue
selectExemplairesRevue()  : array<string|int, mixed>|null
récupère tous les exemplaires d'une revue
selectTableSimple()  : array<string|int, mixed>|null
récupère toutes les lignes d'une table simple (qui contient juste id et libelle)
selectTuplesOneTable()  : array<string|int, mixed>|null
récupère les tuples d'une seule table
updateOneTupleOneTable()  : int|null
demande de modification (update) d'un tuple dans une table
updateSuiviCommande()  : int|null
modifie le suivi d'une commande document

Properties

Methods

__construct()

constructeur qui appelle celui de la classe mère

public __construct() : mixed

demande()

demande de traitement de la demande

public demande(string $methodeHTTP, string $table, string|null $id, array<string|int, mixed>|null $champs) : array<string|int, mixed>|int|null
Parameters
$methodeHTTP : string
$table : string
$id : string|null
$champs : array<string|int, mixed>|null
Return values
array<string|int, mixed>|int|null

traitementDelete()

demande de suppression (delete)

protected traitementDelete(string $table, array<string|int, mixed>|null $champs) : int|null
Parameters
$table : string
$champs : array<string|int, mixed>|null
Return values
int|null

traitementInsert()

demande d'ajout (insert)

protected traitementInsert(string $table, array<string|int, mixed>|null $champs) : int|null
Parameters
$table : string
$champs : array<string|int, mixed>|null
Return values
int|null

traitementSelect()

demande de recherche

protected traitementSelect(string $table, array<string|int, mixed>|null $champs) : array<string|int, mixed>|null
Parameters
$table : string
$champs : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

traitementUpdate()

demande de modification (update)

protected traitementUpdate(string $table, string|null $id, array<string|int, mixed>|null $champs) : int|null
Parameters
$table : string
$id : string|null
$champs : array<string|int, mixed>|null
Return values
int|null

deleteCommandeDocument()

supprime une commande document

private deleteCommandeDocument(array<string|int, mixed>|null $champs) : int|null
Parameters
$champs : array<string|int, mixed>|null
Return values
int|null

deleteTuplesOneTable()

demande de suppression (delete) d'un ou plusieurs tuples dans une table

private deleteTuplesOneTable(string $table, array<string|int, mixed>|null $champs) : int|null
Parameters
$table : string
$champs : array<string|int, mixed>|null
Return values
int|null

insertCommandeDocument()

insère une commande document (dans commande ET commandedocument)

private insertCommandeDocument(array<string|int, mixed>|null $champs) : int|null
Parameters
$champs : array<string|int, mixed>|null
Return values
int|null

insertCommandeRevue()

insère un abonnement

private insertCommandeRevue(array<string|int, mixed>|null $champs) : int|null
Parameters
$champs : array<string|int, mixed>|null
Return values
int|null

insertOneTupleOneTable()

demande d'ajout (insert) d'un tuple dans une table

private insertOneTupleOneTable(string $table, array<string|int, mixed>|null $champs) : int|null
Parameters
$table : string
$champs : array<string|int, mixed>|null
Return values
int|null

selectAbonnementsExpiresBientot()

récupère les abonnements qui expirent dans moins de 30 jours

private selectAbonnementsExpiresBientot() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectAllDvd()

récupère toutes les lignes de la table DVD et les tables associées

private selectAllDvd() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectAllLivres()

récupère toutes les lignes de la table Livre et les tables associées

private selectAllLivres() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectAllRevues()

récupère toutes les lignes de la table Revue et les tables associées

private selectAllRevues() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectCommandesDocument()

récupère toutes les commandes d'un livre ou DVD

private selectCommandesDocument(array<string|int, mixed>|null $champs) : array<string|int, mixed>|null
Parameters
$champs : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectCommandesRevue()

récupère tous les abonnements d'une revue

private selectCommandesRevue(array<string|int, mixed>|null $champs) : array<string|int, mixed>|null
Parameters
$champs : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectExemplairesRevue()

récupère tous les exemplaires d'une revue

private selectExemplairesRevue(array<string|int, mixed>|null $champs) : array<string|int, mixed>|null
Parameters
$champs : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

selectTableSimple()

récupère toutes les lignes d'une table simple (qui contient juste id et libelle)

private selectTableSimple(string $table) : array<string|int, mixed>|null
Parameters
$table : string
Return values
array<string|int, mixed>|null

selectTuplesOneTable()

récupère les tuples d'une seule table

private selectTuplesOneTable(string $table, array<string|int, mixed>|null $champs) : array<string|int, mixed>|null
Parameters
$table : string
$champs : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

updateOneTupleOneTable()

demande de modification (update) d'un tuple dans une table

private updateOneTupleOneTable(string $table, string|null $id, array<string|int, mixed>|null $champs) : int|null
Parameters
$table : string
$id : string|null
$champs : array<string|int, mixed>|null
Return values
int|null

updateSuiviCommande()

modifie le suivi d'une commande document

private updateSuiviCommande(string|null $id, array<string|int, mixed>|null $champs) : int|null
Parameters
$id : string|null
$champs : array<string|int, mixed>|null
Return values
int|null

        
On this page

Search results