From 25de60c128c69ec3dd0f77c60f17fb2301e7a7da Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Sat, 27 Jan 2024 14:05:25 -0300 Subject: [PATCH] Added more phpDoc to deprecated pagination method --- system/database/autoload.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/system/database/autoload.php b/system/database/autoload.php index 88e2528..ac7f310 100644 --- a/system/database/autoload.php +++ b/system/database/autoload.php @@ -158,16 +158,18 @@ final class Database { return $this->driver->getLastId(); } - /** - * @param string $sql - * @param int $pageNum_exibe - * @param int $maxRows_exibe - * @param bool $cache - * @param string|null $sqlTotal - * @return object - * @deprecated 2.0.0 - * @throws PhpfastcacheInvalidArgumentException - */ + /** + * @param string $sql + * @param int $pageNum_exibe + * @param int $maxRows_exibe + * @param bool $cache + * @param string|null $sqlTotal + * @return object + * @deprecated 2.0.0 This method as no longer maintained and will be removed on any 2.x further version (not defined yet). + * @deprecated Use MaqiQL class (\Phacil\Framework\MagiQL) instead. + * @see \Phacil\Framework\MagiQL To use statement queries for more secure and relialable code. + * @throws PhpfastcacheInvalidArgumentException + */ public function pagination($sql, $pageNum_exibe = 1, $maxRows_exibe = 10, $cache = true, $sqlTotal = null){ if (($pageNum_exibe >= 1)) {