// Add php doc to Link::getPaginationLink

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14453 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-04-04 13:07:46 +00:00
parent b5a1ef3db0
commit a488668839
+15 -5
View File
@@ -400,11 +400,11 @@ class LinkCore
}
/**
* Create link after language change, for the change language block
*
* @param integer $id_lang Language ID
* @return string link
*/
* Create link after language change, for the change language block
*
* @param integer $id_lang Language ID
* @return string link
*/
public function getLanguageLink($id_lang, Context $context = null)
{
if (!$context)
@@ -434,6 +434,16 @@ class LinkCore
return $url.($p == 1 ? '' : (!strstr($url, '?') ? '?' : '&').'p='.(int)$p);
}
/**
* Get pagination link
*
* @param string $type Controller name
* @param int $id_object
* @param boolean $nb Show nb element per page attribute
* @param boolean $sort Show sort attribute
* @param boolean $pagination Show page number attribute
* @param boolean $array If false return an url, if true return an array
*/
public function getPaginationLink($type, $id_object, $nb = false, $sort = false, $pagination = false, $array = false)
{
// If no parameter $type, try to get it by using the controller name