<?php
namespace Modules\Bsp\Settlement; abstract class ModelGenerateReportAbstract { protected $listingParams = null; protected $filename = null; public function setListingParams(\App\Mvc\View\Listing\Members\Params $listingParams) { $this->listingParams = $listingParams; return $this; } abstract public function generate($outputFile); protected function getBspIterator(\App\Mvc\View\Listing\Members\Params $listingParams) { $model = new Model(); $listingParams->setCurrentPage(0)->setResultsPerPage(15); $listingParams->setOrderColumn(''); $sqlIterator = $model->buildNonPaginatedIterator($this->listingParams); $sqlIterator->setOption('queueLength', 10000); return $sqlIterator; } } 