|
@@ 980-984 (lines=5) @@
|
| 977 |
|
*/ |
| 978 |
|
public function set_checkin_checkout($data,$id) { |
| 979 |
|
|
| 980 |
|
if(!empty($data[0]['features']) && isset($data[0]['features']['check_in_time'])){ |
| 981 |
|
$time = str_replace('h',':',$data[0]['features']['check_in_time']); |
| 982 |
|
$time = date('h:ia',strtotime($time)); |
| 983 |
|
$this->save_custom_field($time,'checkin_time',$id); |
| 984 |
|
} |
| 985 |
|
if(!empty($data[0]['features']) && isset($data[0]['features']['check_out_time'])){ |
| 986 |
|
$time = str_replace('h',':',$data[0]['features']['check_out_time']); |
| 987 |
|
$time = date('h:ia',strtotime($time)); |
|
@@ 985-989 (lines=5) @@
|
| 982 |
|
$time = date('h:ia',strtotime($time)); |
| 983 |
|
$this->save_custom_field($time,'checkin_time',$id); |
| 984 |
|
} |
| 985 |
|
if(!empty($data[0]['features']) && isset($data[0]['features']['check_out_time'])){ |
| 986 |
|
$time = str_replace('h',':',$data[0]['features']['check_out_time']); |
| 987 |
|
$time = date('h:ia',strtotime($time)); |
| 988 |
|
$this->save_custom_field($time,'checkout_time',$id); |
| 989 |
|
} |
| 990 |
|
} |
| 991 |
|
|
| 992 |
|
/** |