protected function runInternal() { parent::runInternal(); $list = $this->getList(); $segments = $this->getSegments(); if (count($segments)) { $this->debug(Deliverance::_('Updating Segment Counts') . "\n\n", true); foreach ($segments as $segment) { $this->updateSegment($list, $segment); } } else { $this->debug(Deliverance::_('No segments found. '), true); } $this->debug(Deliverance::_('All Done.') . "\n", true); }
protected function runInternal() { parent::runInternal(); $list = $this->getList(); $this->debug(Deliverance::_('Updating Mailing List') . "\n\n", true); $this->debug(Deliverance::_('Subscribing:') . "\n--------------------\n"); $this->subscribe($list); $this->debug(Deliverance::_('Done subscribing.') . "\n\n"); $this->debug(Deliverance::_('Updating:') . "\n--------------------\n"); $this->update($list); $this->debug(Deliverance::_('Done updating.') . "\n\n"); $this->debug(Deliverance::_('Unsubscribing:') . "\n--------------------\n"); $this->unsubscribe($list); $this->debug(Deliverance::_('Done unsubscribing.') . "\n\n"); $this->debug(Deliverance::_('All Done.') . "\n", true); }