Exemple #1
0
 private function _DoProcessPostedData()
 {
     if ($this->GetErrorCount() > 0) {
         return false;
     }
     // handle the data
     $this->_ProcessFiles();
     $this->_ProcessPost();
     if ($this->GetErrorCount() > 0) {
         return false;
     }
     // anything else we need to do before returning to the user
     $mailchimpList = Config::GetInstance()->GetConfig('settings', 'mailchimp', 'lists');
     if ($mailchimpList && is_array($mailchimpList)) {
         foreach ($mailchimpList as $list) {
             if (isset($list->is_present) && $list->is_present) {
                 $mc = new MailChimp();
                 $mc->Dispatch(Config::GetInstance()->GetConfig('settings', 'mailchimp'));
                 // dispatcher loops through the lists, thus no need to continue here
                 break;
             }
         }
     }
 }