Source of file FlagCommentsExtension.php
Size: 0,396 Bytes - Last Modified: 2021-12-23T10:09:08+00:00
/var/www/docs.ssmods.com/process/src/src/extensions/FlagCommentsExtension.php
1234567891011121314151617181920 | <?php namespace NZTA\FlagComments\Extensions; use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\SS_List; class FlagCommentsExtension extends DataExtension { /** * Filters flagged and removed comments * * @param SS_List $list */ public function updateAllVisibleComments(SS_List &$list) { $list = $list->filter('FlaggedAndRemoved', false); } } |