count_processed === $this->count_total) { return false; } else { $this->set('status', 'paused'); $this->save(); return ($this->getErrors() === false && $this->id() > 0); } } function resume() { if($this->count_processed === $this->count_total) { return $this->complete(); } else { $this->set_expr('status', 'NULL'); $this->save(); return ($this->getErrors() === false && $this->id() > 0); } } function complete() { $this->set('status', 'completed'); $this->save(); return ($this->getErrors() === false && $this->id() > 0); } }