|
@@ 876-880 (lines=5) @@
|
| 873 |
|
* Set the Check in and Check out Date |
| 874 |
|
*/ |
| 875 |
|
public function set_checkin_checkout( $data, $id ) { |
| 876 |
|
if ( ! empty( $data[0]['features'] ) && isset( $data[0]['features']['check_in_time'] ) ) { |
| 877 |
|
$time = str_replace( 'h',':',$data[0]['features']['check_in_time'] ); |
| 878 |
|
$time = date( 'h:ia',strtotime( $time ) ); |
| 879 |
|
$this->save_custom_field( $time,'checkin_time',$id ); |
| 880 |
|
} |
| 881 |
|
|
| 882 |
|
if ( ! empty( $data[0]['features'] ) && isset( $data[0]['features']['check_out_time'] ) ) { |
| 883 |
|
$time = str_replace( 'h',':',$data[0]['features']['check_out_time'] ); |
|
@@ 882-886 (lines=5) @@
|
| 879 |
|
$this->save_custom_field( $time,'checkin_time',$id ); |
| 880 |
|
} |
| 881 |
|
|
| 882 |
|
if ( ! empty( $data[0]['features'] ) && isset( $data[0]['features']['check_out_time'] ) ) { |
| 883 |
|
$time = str_replace( 'h',':',$data[0]['features']['check_out_time'] ); |
| 884 |
|
$time = date( 'h:ia',strtotime( $time ) ); |
| 885 |
|
$this->save_custom_field( $time,'checkout_time',$id ); |
| 886 |
|
} |
| 887 |
|
} |
| 888 |
|
|
| 889 |
|
/** |