// Add php doc to Link::getPaginationLink

This commit is contained in:
mDeflotte
2012-04-04 13:07:46 +00:00
parent 025e698e54
commit 3e2d792a87
+10
View File
@@ -434,6 +434,16 @@ class LinkCore
return $url.($p == 1 ? '' : (!strstr($url, '?') ? '?' : '&').'p='.(int)$p); 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) 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 // If no parameter $type, try to get it by using the controller name