GalleryVisibilityTrait
Galleries attached to a detail (article, event) that the current visitor may see.
Requires in the host class: getUser() (Nette presenter).
Table of Contents
Methods
- visibleGalleries() : array<int, Gallery>
- {@see Gallery::isVisibleFor()}: active, published, `onlyForLogged` only for a logged-in visitor.
Methods
visibleGalleries()
{@see Gallery::isVisibleFor()}: active, published, `onlyForLogged` only for a logged-in visitor.
private
visibleGalleries(array<string|int, mixed> $galleries) : array<int, Gallery>
Parameters
- $galleries : array<string|int, mixed>