@@ -214,6 +214,7 @@ |
||
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | 216 | * format the array |
| 217 | + * @param string $key |
|
| 217 | 218 | */ |
| 218 | 219 | public function format_array( $array, $key ) { |
| 219 | 220 | $new_array = array(); |
@@ -229,6 +229,9 @@ |
||
| 229 | 229 | } |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | + /** |
|
| 233 | + * @param string $url |
|
| 234 | + */ |
|
| 232 | 235 | public function attach_external_image2( $url = null, $post_data = array(), $post_id = '' ) { |
| 233 | 236 | if ( ! $url ) { return new WP_Error( 'missing', 'Need a valid URL' ); } |
| 234 | 237 | $att_id = false; |
@@ -798,7 +798,7 @@ discard block |
||
| 798 | 798 | * |
| 799 | 799 | * @param $day |
| 800 | 800 | * @param $leg |
| 801 | - * @return void |
|
| 801 | + * @return boolean |
|
| 802 | 802 | */ |
| 803 | 803 | public function get_mobile_destination( $day, $leg, $id ) { |
| 804 | 804 | $current_destination = false; |
@@ -938,7 +938,6 @@ discard block |
||
| 938 | 938 | * Takes the WETU tags and sets the Travel Styles. |
| 939 | 939 | * |
| 940 | 940 | * @param string $id |
| 941 | - * @param array $travel_styles |
|
| 942 | 941 | * @return void |
| 943 | 942 | */ |
| 944 | 943 | public function set_travel_styles( $id, $data ) { |
@@ -1012,6 +1011,7 @@ discard block |
||
| 1012 | 1011 | * |
| 1013 | 1012 | * @param $day array |
| 1014 | 1013 | * @param $id string |
| 1014 | + * @param integer $leg_counter |
|
| 1015 | 1015 | * @return boolean / string |
| 1016 | 1016 | */ |
| 1017 | 1017 | public function set_destination( $day, $id, $leg_counter ) { |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | * Formats the row for output on the screen. |
| 346 | 346 | * |
| 347 | 347 | * @param boolean $row the current row to format. |
| 348 | - * @return void |
|
| 348 | + * @return string|null |
|
| 349 | 349 | */ |
| 350 | 350 | public function format_row( $row = false, $row_key = '' ) { |
| 351 | 351 | if ( false !== $row ) { |
@@ -600,6 +600,7 @@ discard block |
||
| 600 | 600 | |
| 601 | 601 | /** |
| 602 | 602 | * Set the safari brand |
| 603 | + * @param boolean $safari_brands |
|
| 603 | 604 | */ |
| 604 | 605 | public function set_safari_brands( $id, $safari_brands ) { |
| 605 | 606 | foreach ( $safari_brands as $safari_brand ) { |
@@ -677,6 +677,7 @@ |
||
| 677 | 677 | |
| 678 | 678 | /** |
| 679 | 679 | * Saves the room data |
| 680 | + * @param string $meta_key |
|
| 680 | 681 | */ |
| 681 | 682 | public function set_travel_info( $data, $id, $meta_key, $importable = array( 'none' ) ) { |
| 682 | 683 | if ( ! empty( $data[0]['travel_information'] ) && isset( $data[0]['travel_information'][ $meta_key ] ) ) { |
@@ -811,7 +811,7 @@ discard block |
||
| 811 | 811 | * @param boolean $name |
| 812 | 812 | * @param boolean $taxonomy |
| 813 | 813 | * @param boolean $parent |
| 814 | - * @return void |
|
| 814 | + * @return boolean |
|
| 815 | 815 | */ |
| 816 | 816 | public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) { |
| 817 | 817 | $term = term_exists( $name, $taxonomy ); |
@@ -1113,6 +1113,10 @@ discard block |
||
| 1113 | 1113 | return false; |
| 1114 | 1114 | } |
| 1115 | 1115 | |
| 1116 | + /** |
|
| 1117 | + * @param string $url |
|
| 1118 | + * @param string $thumb |
|
| 1119 | + */ |
|
| 1116 | 1120 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
| 1117 | 1121 | if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); } |
| 1118 | 1122 | $att_id = false; |
@@ -1216,6 +1220,7 @@ discard block |
||
| 1216 | 1220 | |
| 1217 | 1221 | /** |
| 1218 | 1222 | * Does a multine search |
| 1223 | + * @param string $haystack |
|
| 1219 | 1224 | */ |
| 1220 | 1225 | public function multineedle_stripos( $haystack, $needles, $offset = 0 ) { |
| 1221 | 1226 | $found = false; |
@@ -1299,6 +1304,9 @@ discard block |
||
| 1299 | 1304 | } |
| 1300 | 1305 | } |
| 1301 | 1306 | |
| 1307 | + /** |
|
| 1308 | + * @param string $array |
|
| 1309 | + */ |
|
| 1302 | 1310 | public function shuffle_assoc( &$array ) { |
| 1303 | 1311 | $new = array(); |
| 1304 | 1312 | $keys = array_keys( $array ); |
@@ -1368,6 +1376,7 @@ discard block |
||
| 1368 | 1376 | } |
| 1369 | 1377 | /** |
| 1370 | 1378 | * Set the team memberon each item. |
| 1379 | + * @param boolean $team_members |
|
| 1371 | 1380 | */ |
| 1372 | 1381 | public function set_team_member( $id, $team_members ) { |
| 1373 | 1382 | delete_post_meta( $id, 'team_to_' . $this->tab_slug ); |