/** * Return the names of the existing feeds so they are not removed * @return array */ public function purgeOldFeeds() { $arrFeeds = array(); $objFeeds = \SermonFeedModel::findAll(); if ($objFeeds !== null) { while ($objFeeds->next()) { $arrFeeds[] = $objFeeds->alias ?: 'sermon' . $objFeeds->id; } } return $arrFeeds; }