示例#1
0
 public static function save($where, $data, $fields = null)
 {
     if (!isset($data->id) || $data->id < 1) {
         $id = ABM2::insertData($where, $data, $fields);
     } else {
         $id = ABM2::updateData($where, $data, $fields);
     }
     return $id;
 }