/**
* Gets a list of the custom newsletter groups (s_campaigns_groups)
*/
public function getNewsletterGroupsAction() { $filter =
$this->
Request()->
getParam('filter'
);
$sort =
$this->
Request()->
getParam('sort'
);
$limit =
$this->
Request()->
getParam('limit', 10
);
$offset =
$this->
Request()->
getParam('start', 0
);
$groups =
$this->
getCampaignsRepository()->
getListGroupsQuery($filter,
$sort,
$limit,
$offset)->
getArrayResult();
$this->
View()->
assign([ 'success' => true,
'data' =>
$groups,
'total' => \
count($groups),
]);
} /**
* Create a new recipient
*/