public function setup()
 {
     parent::setup();
     $datetime = $this->getDatetime();
     $registrations = $datetime->Registrations('"Status" = \'Valid\'');
     $this->emails = $registrations->map('Email', 'Name');
     $this->totalSteps = count($this->emails);
 }
 public function setup()
 {
     parent::setup();
     $obj = $this->getObject();
     if ($obj) {
         $this->cachePublisher->recacheFragments($obj);
     }
 }
 /**
  * Note that this is duplicated for backwards compatibility purposes...
  */
 public function setup()
 {
     parent::setup();
     increase_time_limit_to();
     $restart = $this->currentStep == 0;
     if ($restart) {
         $this->pagesToProcess = DB::query('SELECT "ID" FROM SiteTree_Live WHERE ShowInSearch=1')->column();
     }
 }
 /**
  * Note that this is duplicated for backwards compatibility purposes...
  */
 public function setup()
 {
     parent::setup();
     increase_time_limit_to();
     $restart = $this->currentStep == 0;
     if (!$this->tempFile || !file_exists($this->tempFile)) {
         $tmpfile = tempnam(getTempFolder(), 'sitemap');
         if (file_exists($tmpfile)) {
             $this->tempFile = $tmpfile;
         }
         $restart = true;
     }
     if ($restart) {
         $this->pagesToProcess = DB::query('SELECT ID FROM SiteTree_Live WHERE ShowInSearch=1')->column();
     }
 }
 /**
  * Note that this is duplicated for backwards compatibility purposes...
  */
 public function setup()
 {
     parent::setup();
     increase_time_limit_to();
     $restart = $this->currentStep == 0;
     if (!$this->tempFile || !file_exists($this->tempFile)) {
         $tmpfile = tempnam(getTempFolder(), 'postsitemap');
         if (file_exists($tmpfile)) {
             $this->tempFile = $tmpfile;
         }
         $restart = true;
     }
     if ($restart) {
         $this->toProcess = $this->getProcessIds();
     }
 }