28 lines
571 B
PHP
28 lines
571 B
PHP
<?php
|
|
|
|
class Preorder_Statustrigger_245 {
|
|
private $log;
|
|
|
|
private $preorder;
|
|
private $new_status;
|
|
public $run_action = true;
|
|
|
|
public function __construct(Preorder $preorder, Preorderstatus $new_status) {
|
|
$this->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;
|
|
}
|
|
} |