|
@@ 933-943 (lines=11) @@
|
| 930 |
|
/** |
| 931 |
|
* Set the spoken_languages |
| 932 |
|
*/ |
| 933 |
|
public function set_spoken_languages($data,$id) { |
| 934 |
|
if(!empty($data[0]['features']) && isset($data[0]['features']['spoken_languages']) && !empty($data[0]['features']['spoken_languages'])){ |
| 935 |
|
$languages = false; |
| 936 |
|
foreach($data[0]['features']['spoken_languages'] as $spoken_language){ |
| 937 |
|
$languages[] = sanitize_title($spoken_language); |
| 938 |
|
} |
| 939 |
|
if(false !== $languages){ |
| 940 |
|
$this->save_custom_field($languages,'spoken_languages',$id); |
| 941 |
|
} |
| 942 |
|
} |
| 943 |
|
} |
| 944 |
|
|
| 945 |
|
/** |
| 946 |
|
* Set the friendly |
|
@@ 948-958 (lines=11) @@
|
| 945 |
|
/** |
| 946 |
|
* Set the friendly |
| 947 |
|
*/ |
| 948 |
|
public function set_friendly($data,$id) { |
| 949 |
|
if(!empty($data[0]['features']) && isset($data[0]['features']['suggested_visitor_types']) && !empty($data[0]['features']['suggested_visitor_types'])){ |
| 950 |
|
$friendly_options = false; |
| 951 |
|
foreach($data[0]['features']['suggested_visitor_types'] as $visitor_type){ |
| 952 |
|
$friendly_options[] = sanitize_title($visitor_type); |
| 953 |
|
} |
| 954 |
|
if(false !== $friendly_options){ |
| 955 |
|
$this->save_custom_field($friendly_options,'suggested_visitor_types',$id); |
| 956 |
|
} |
| 957 |
|
} |
| 958 |
|
} |
| 959 |
|
|
| 960 |
|
/** |
| 961 |
|
* Set the special interests |
|
@@ 963-973 (lines=11) @@
|
| 960 |
|
/** |
| 961 |
|
* Set the special interests |
| 962 |
|
*/ |
| 963 |
|
public function set_special_interests($data,$id) { |
| 964 |
|
if(!empty($data[0]['features']) && isset($data[0]['features']['special_interests']) && !empty($data[0]['features']['special_interests'])){ |
| 965 |
|
$interests = false; |
| 966 |
|
foreach($data[0]['features']['special_interests'] as $special_interest){ |
| 967 |
|
$interests[] = sanitize_title($special_interest); |
| 968 |
|
} |
| 969 |
|
if(false !== $interests){ |
| 970 |
|
$this->save_custom_field($interests,'special_interests',$id); |
| 971 |
|
} |
| 972 |
|
} |
| 973 |
|
} |
| 974 |
|
|
| 975 |
|
/** |
| 976 |
|
* Set the Check in and Check out Date |