RSS Feed/News $finder / pagenav / total() / fetch() / unset some rows and normalize the pagenav and results

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,914
Points
823

Reputation:

Well, we have the well known finder: $this->finder('XF:Thread').

Finder includes methods to separate results into pages for the <xf:pagenav>, like:
PHP:

Code:
        $total = $finder->total();
        $threads = $finder->limitByPage($page, $perPage)->fetch();

My question: AFTER $finder->fetch(); I need to unset some "rows" based on some checks which cannot be applied on the $finder query / where.

The basic thing is to not break the display on the...

Read more

Continue reading...
 
Status
Not open for further replies.
Top