Source of file GalleryHolder.php
Size: 0,609 Bytes - Last Modified: 2020-01-07T10:44:43+00:00
/var/www/docs.ssmods.com/process/src/code/pages/GalleryHolder.php
123456789101112131415161718192021 | <?php class GalleryHolder extends Page { private static $singular_name = 'Galerieübersicht'; private static $description = 'Zeigt alle untergeordneten Galerien an.'; private static $can_be_root = true; private static $allowed_children = ['GalleryPage']; private static $default_child = 'GalleryPage'; /** * Returns all galleries which should be shown in the front end, including those which are not shown in the menus. * @return ArrayList */ public function ShownGalleries() { return $this->AllChildren() ->filterByCallback(function($item) { return $item->canView(); }); } } |