|
@@ 847-851 (lines=5) @@
|
| 844 |
|
* Set the Check in and Check out Date |
| 845 |
|
*/ |
| 846 |
|
public function set_checkin_checkout( $data, $id ) { |
| 847 |
|
if ( ! empty( $data[0]['features'] ) && isset( $data[0]['features']['check_in_time'] ) ) { |
| 848 |
|
$time = str_replace( 'h', ':', $data[0]['features']['check_in_time'] ); |
| 849 |
|
$time = date( 'h:ia', strtotime( $time ) ); |
| 850 |
|
$this->save_custom_field( $time, 'checkin_time', $id ); |
| 851 |
|
} |
| 852 |
|
|
| 853 |
|
if ( ! empty( $data[0]['features'] ) && isset( $data[0]['features']['check_out_time'] ) ) { |
| 854 |
|
$time = str_replace( 'h', ':', $data[0]['features']['check_out_time'] ); |
|
@@ 853-857 (lines=5) @@
|
| 850 |
|
$this->save_custom_field( $time, 'checkin_time', $id ); |
| 851 |
|
} |
| 852 |
|
|
| 853 |
|
if ( ! empty( $data[0]['features'] ) && isset( $data[0]['features']['check_out_time'] ) ) { |
| 854 |
|
$time = str_replace( 'h', ':', $data[0]['features']['check_out_time'] ); |
| 855 |
|
$time = date( 'h:ia', strtotime( $time ) ); |
| 856 |
|
$this->save_custom_field( $time, 'checkout_time', $id ); |
| 857 |
|
} |
| 858 |
|
} |
| 859 |
|
|
| 860 |
|
/** |