Add reference hooks
This commit is contained in:
@@ -25,11 +25,14 @@ class TaskPagination extends Base
|
||||
*/
|
||||
public function getDashboardPaginator($user_id, $method, $max)
|
||||
{
|
||||
$query = $this->taskFinderModel->getUserQuery($user_id);
|
||||
$this->hook->reference('pagination:dashboard:task:query', $query);
|
||||
|
||||
return $this->paginator
|
||||
->setUrl('DashboardController', $method, array('pagination' => 'tasks', 'user_id' => $user_id))
|
||||
->setMax($max)
|
||||
->setOrder(TaskModel::TABLE.'.id')
|
||||
->setQuery($this->taskFinderModel->getUserQuery($user_id))
|
||||
->setQuery($query)
|
||||
->calculateOnlyIf($this->request->getStringParam('pagination') === 'tasks');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user