|
Folliow
Un projet de site web réaliser en PHP
|
Public Member Functions | |
| findAll (int $intLimit=0, string $strKeywords='', int $intAuthor=0, int $intPeriod=0, string $strDate='', string $strStartDate='', string $strEndDate='', int $intCategory=0, bool $boolOlderThan6Months=false) | |
| insert (object $objProject) | |
| findOne (int $intId) | |
| accept (int $id) | |
| refuse (int $id) | |
| delete_soft_project (int $intId) | |
| updateProject (object $objProject) | |
| getImagesByProjectId (int $projectId) | |
| deleteImage (int $id) | |
| updateImageStatus (int $id, string $status) | |
| findImage (int $id) | |
| addImageInProject (string $fileName, int $projectId, string $alt="Image projet") | |
Additional Inherited Members | |
| Protected Attributes inherited from MotherModel | |
| $_db | |
Traitement des requêtes pour les projets
| accept | ( | int | $id | ) |
Fonction de changement de status (accepter) d'un projet en BDD
| int | $id | l'id du projet |
| addImageInProject | ( | string | $fileName, |
| int | $projectId, | ||
| string | $alt = "Image projet" ) |
Ajoute une image liée à un projet dans la table 'image'
| string | $fileName | Nom du fichier image |
| int | $projectId | ID du projet parent |
| string | $alt | Texte alternatif |
| delete_soft_project | ( | int | $intId | ) |
Fonction de suppression d'un projet en BDD
| int | $id | l'id du projet |
| deleteImage | ( | int | $id | ) |
Fonction de récupération d'image d'un projet en BDD
| int | $id | L'Id de l'image choisit |
| findAll | ( | int | $intLimit = 0, |
| string | $strKeywords = '', | ||
| int | $intAuthor = 0, | ||
| int | $intPeriod = 0, | ||
| string | $strDate = '', | ||
| string | $strStartDate = '', | ||
| string | $strEndDate = '', | ||
| int | $intCategory = 0, | ||
| bool | $boolOlderThan6Months = false ) |
Fonction de recherche des projets
| type | string, int et bool |
| findImage | ( | int | $id | ) |
Fonction de récupération d'image d'un projet en BDD
| int | $id | L'Id de l'image choisit |
| findOne | ( | int | $intId | ) |
Fonction de recherche d'un seul projet
| int | $intId |
| getImagesByProjectId | ( | int | $projectId | ) |
Fonction de récupération d'image d'un projet en BDD
| int | $objProject | L'Id du projet choisit |
| insert | ( | object | $objProject | ) |
Fonction d'insertion d'un nouveau projet dans la bdd
| object | $objProject | l'objet projet |
| refuse | ( | int | $id | ) |
Fonction de changement de status (refusé) d'un projet en BDD
| int | $id | l'id du projet |
| updateImageStatus | ( | int | $id, |
| string | $status ) |
Fonction de modifications de status de l'image d'un projet en BDD
| int | $id | L'Id de l'image choisit, string $status le status choisit |
| updateProject | ( | object | $objProject | ) |
Fonction de mise à jour d'un projet en BDD
| object | $objProject | L'objet utilisateur |