public function mainDialog($feed = null)
 {
     global $pfcore;
     if ($feed != null) {
         //If the Feed already exists, we need to fill in some check boxes
         $checkedFeeds = $pfcore->settingGet('cpf_aggrfeedlist_' . $feed->id);
         $checkedFeeds = explode(',', $checkedFeeds);
         foreach ($this->feeds as $thisFeed) {
             foreach ($checkedFeeds as $check) {
                 if ($thisFeed->id == $check) {
                     $thisFeed->checked = true;
                     $thisFeed->checkedString = ' checked="checked"';
                     break;
                 }
             }
         }
     }
     parent::mainDialog($feed);
 }