Source of file PageWithImageFolder.php
Size: 0,753 Bytes - Last Modified: 2021-12-23T10:59:01+00:00
/var/www/docs.ssmods.com/process/src/code/PageWithImageFolder.php
123456789101112131415161718192021222324252627282930313233 | <?php /** * Defines the SupportingProjectPage page type - initial code created by ss generator */ class PageWithImageFolder extends PageWithImage implements SeoInformationProvider { //static $allowed_children = array('PageWithImage', 'NearestPOIPage', 'OpenWeatherMapStationsPage','POIMapPage'); public function getImagesForSeo() { $result = new ArrayList(); $pwis = $this->owner->AllChildren()->where("ClassName in ( 'PageWithImage','PageWithImagesFolder')"); foreach ($pwis->getIterator() as $pwi) { if ($pwi->MainImageID > 0) { $result->push($pwi->MainImage()); } } return $result; } public function getLinksForSeo() { return false; } } class PageWithImageFolder_Controller extends PageWithImage_Controller { } |