function __construct() { parent::__construct(); $this->service_name = 'AggCSV'; $this->service_name_long = 'CSV Aggregate Feed'; global $pfcore; $loadFeeds = 'loadFeeds' . $pfcore->callSuffix; $this->{$loadFeeds}(); $this->feeds = array(); $providers = new PProviderList(); foreach ($this->feedsAll as $thisFeed) { $thisFeed->prettyName = $providers->getPrettyNameByType($thisFeed->type); $thisFeed->checked = false; $thisFeed->checkedString = ''; if ($providers->getFileFormatByType($thisFeed->type) == 'csv') { $this->feeds[] = $thisFeed; } } }