public static function save_lab_commodities($data_array) { $o = new Lab_Commodity_Details(); $o->fromArray($data_array); $o->save(); return TRUE; }