// Add php doc to Link::getPaginationLink
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user