log = mfLoghandler::singleton(); $this->preorder = $preorder; $this->new_status = $new_status; } public function run() { $this->log->debug(__METHOD__.": running trigger"); $changes = false; if($changes) { $this->preorder->save(); } return true; } }