<?php

class StatusHistory extends AppModel {
	public $name = "StatusHistory";

	public function insertStatusHistory($obj, $operator_id){
			$result = $this->query("CALL insert_status_history(" .
												$obj->id . "," .
												$obj->newStatus . ",'" .
												$obj->newStatusText . "'," .
												$obj->oldStatus . ",'" .
												$obj->oldStatusText . "','" .
												$obj->comment . "','" .
												$operator_id . "')");
	}

}

?>