setObligatoryKeys('virtuemart_order_id'); $this->setHashable('o_hash'); $this->setOmittedHashFields(array('virtuemart_order_history_id')); $this->setLoggable(); } function check(){ if(!empty($this->comments)){ $this->comments = trim(nl2br($this->comments)); } /*if(empty($this->order_status_code) and !empty($this->order_status)){ $this->order_status_code = $this->order_status; } if(empty($this->order_status) and !empty($this->order_status_code)){ $this->order_status = $this->order_status_code; }*/ return parent::check(); } } // pure php no closing tag