@@ -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 ); |