public function getAllBanners() { $params =
$this->
Request()->
getParams();
$filter =
(empty($params['categoryId'
])) ? '' :
$params['categoryId'
];
$query =
$this->repository->
getBanners($filter);
$banners =
$query->
getArrayResult();
// Restructures the data to better fit extjs model
$nodes =
$this->
prepareBannerData($banners);
$this->
View()->
assign(['success' => !
empty($nodes), 'data' =>
$nodes]);
} /**
* Returns all known banner entries. Live shopping items will be ignored.
*
* This call will have NO impact on the generated statistic - this method
* should be uses for backend operations only!
*/
public function getAllBannersAction() {