smarty ça casse les couilles zebi
This commit is contained in:
parent
b1960b2f35
commit
aec3c845e0
469 changed files with 53465 additions and 69 deletions
28
models/image_model.php
Normal file
28
models/image_model.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
require_once('./config/database.php');
|
||||
|
||||
/**
|
||||
* Traitement de la requête pour les images
|
||||
* @author Laura
|
||||
*/
|
||||
|
||||
class ImageModel extends Connect{
|
||||
|
||||
/**
|
||||
* Fonction de récupération des images
|
||||
* @return array
|
||||
*/
|
||||
|
||||
public function findAllImage(int $intLimit=0):array{
|
||||
|
||||
$strRq = "SELECT image.*
|
||||
FROM image";
|
||||
|
||||
|
||||
if ($intLimit > 0){
|
||||
$strRq .= " LIMIT ".$intLimit;
|
||||
}
|
||||
|
||||
return $this->_db->query($strRq)->fetchAll();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue