public function getForumPostsAll($searchCriteria)
    {
        $allPosts = [];

        $currentPage = 1;
        do {
            $response = $this->getForumPostsByPage($searchCriteria, $currentPage);
            $allPosts = array_merge($allPosts, $response->results);
            $currentPage++;
        } while ($currentPage <= $response->totalPages);

        return $allPosts;
    }
public function getForumPostsAll($searchCriteria)
    {
        $allPosts = [];

        $currentPage = 1;
        do {
            $response = $this->getForumPostsByPage($searchCriteria, $currentPage);
            $allPosts = array_merge($allPosts, $response->results);
            $currentPage++;
        } while ($currentPage <= $response->totalPages);

        return $allPosts;
    }
public function getForumPostsAll ( $ searchCriteria ) { $ allPosts = [ ] ; $ currentPage = 1 ; do { $ response = $ this -> getForumPostsByPage ( $ searchCriteria , $ currentPage ) ; $ allPosts = array_merge ( $ allPosts , $ response -> results ) ; $ currentPage ++ ; } while ( $ currentPage <= $ response -> totalPages ) ; return $ allPosts ; }
Fetch all forum posts that match the given search criteria

@param array $searchCriteria The search criteria posts should match.

@return mixed
@throws Exceptions\InvalidFormat
@throws Exceptions\IpboardMemberEmailExists
@throws Exceptions\IpboardMemberInvalidGroup
@throws Exceptions\IpboardMemberUsernameExists
@throws IpboardInvalidApiKey
@throws IpboardMemberIdInvalid
@throws IpboardThrottled
@throws \Exception
Fetch all forum posts that match the given search criteria