/**
* The getAlbumMediaAction returns the associated media for the passed album id.
* Is used for the listing of the media.
* The media listing supports a filter, paging and order function, which can be controlled
* by the parameters: "filter", "order", "limit", "start"
*
* @return void
*/
public function getAlbumMediaAction() { $order =
$this->
prefixProperties($this->
Request()->
getParam('sort',
[]), 'media'
);
$limit =
$this->
Request()->
getParam('limit'
);
$offset =
$this->
Request()->
getParam('start'
);
$filter =
$this->
Request()->
getParam('filter'
);
$filter =
$filter[0
]['value'
];
$albumID =
$this->
Request()->
getParam('albumID'
);
// Restrict to certain file types
$validTypes =
$this->
Request()->
getParam('validTypes', ''
);
$validTypes =
explode('|',
$validTypes);
if ($albumID === null ||
$albumID === 0
) { // If no albumId is given load the unsorted album