/**
* Get a list of all mail addresses
*/ publicfunctionlistRecipientsAction() { $filter = $this->Request()->getParam('filter'); $sort = $this->Request()->getParam('sort'); $limit = $this->Request()->getParam('limit', 10); $offset = $this->Request()->getParam('start', 0);
$paginator = $this->getModelManager()->createPaginator($query); // Returns the total count of the query
$totalResult = $paginator->count(); // Returns the customer data
$result = iterator_to_array($paginator);