@@ -639,6 +639,7 @@ discard block |
||
| 639 | 639 | |
| 640 | 640 | /** |
| 641 | 641 | * Set the team memberon each item. |
| 642 | + * @param boolean $team_members |
|
| 642 | 643 | */ |
| 643 | 644 | public function set_team_member( $id, $team_members ) { |
| 644 | 645 | delete_post_meta( $id, 'team_to_' . $this->tab_slug ); |
@@ -650,6 +651,7 @@ discard block |
||
| 650 | 651 | |
| 651 | 652 | /** |
| 652 | 653 | * Set the safari brand |
| 654 | + * @param boolean $safari_brands |
|
| 653 | 655 | */ |
| 654 | 656 | public function set_safari_brands( $id, $safari_brands ) { |
| 655 | 657 | foreach ( $safari_brands as $safari_brand ) { |
@@ -232,6 +232,9 @@ |
||
| 232 | 232 | } |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $url |
|
| 237 | + */ |
|
| 235 | 238 | public function attach_external_image2( $url = null, $post_data = array() ) { |
| 236 | 239 | if ( ! $url ) { return new WP_Error( 'missing', 'Need a valid URL' ); } |
| 237 | 240 | |
@@ -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(); |
@@ -656,6 +656,7 @@ discard block |
||
| 656 | 656 | |
| 657 | 657 | /** |
| 658 | 658 | * Set the team memberon each item. |
| 659 | + * @param boolean $team_members |
|
| 659 | 660 | */ |
| 660 | 661 | public function set_team_member( $id, $team_members ) { |
| 661 | 662 | delete_post_meta( $id, 'team_to_' . $this->tab_slug ); |
@@ -667,6 +668,7 @@ discard block |
||
| 667 | 668 | |
| 668 | 669 | /** |
| 669 | 670 | * Saves the room data |
| 671 | + * @param string $meta_key |
|
| 670 | 672 | */ |
| 671 | 673 | public function set_travel_info( $data, $id, $meta_key ) { |
| 672 | 674 | if ( ! empty( $data[0]['travel_information'] ) && isset( $data[0]['travel_information'][ $meta_key ] ) ) { |
@@ -649,6 +649,7 @@ discard block |
||
| 649 | 649 | |
| 650 | 650 | /** |
| 651 | 651 | * A loop which runs through each leg on the tour. |
| 652 | + * @param boolean $importable_content |
|
| 652 | 653 | */ |
| 653 | 654 | public function process_itineraries( $data, $id, $importable_content ) { |
| 654 | 655 | $day_counter = 1; |
@@ -949,6 +950,7 @@ discard block |
||
| 949 | 950 | * |
| 950 | 951 | * @param $day array |
| 951 | 952 | * @param $id string |
| 953 | + * @param integer $leg_counter |
|
| 952 | 954 | * @return boolean / string |
| 953 | 955 | */ |
| 954 | 956 | public function set_destination( $day, $id, $leg_counter ) { |
@@ -769,6 +769,9 @@ discard block |
||
| 769 | 769 | return $result; |
| 770 | 770 | } |
| 771 | 771 | |
| 772 | + /** |
|
| 773 | + * @return boolean |
|
| 774 | + */ |
|
| 772 | 775 | public function set_term( $id = false, $name = false, $taxonomy = false, $parent = false ) { |
| 773 | 776 | // @codingStandardsIgnoreLine |
| 774 | 777 | if ( ! $term = term_exists( $name, $taxonomy ) ) { |
@@ -1072,6 +1075,10 @@ discard block |
||
| 1072 | 1075 | return false; |
| 1073 | 1076 | } |
| 1074 | 1077 | |
| 1078 | + /** |
|
| 1079 | + * @param string $url |
|
| 1080 | + * @param string $thumb |
|
| 1081 | + */ |
|
| 1075 | 1082 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
| 1076 | 1083 | if ( ! $url || ! $post_id ) { return new WP_Error( 'missing', 'Need a valid URL and post ID...' ); } |
| 1077 | 1084 | |
@@ -1182,6 +1189,7 @@ discard block |
||
| 1182 | 1189 | |
| 1183 | 1190 | /** |
| 1184 | 1191 | * Does a multine search |
| 1192 | + * @param string $haystack |
|
| 1185 | 1193 | */ |
| 1186 | 1194 | public function multineedle_stripos( $haystack, $needles, $offset = 0 ) { |
| 1187 | 1195 | $found = false; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | * |
| 199 | 199 | * @since 1.0.0 |
| 200 | 200 | * |
| 201 | - * @return object A single instance of this class. |
|
| 201 | + * @return false|null A single instance of this class. |
|
| 202 | 202 | */ |
| 203 | 203 | public function dashboard_tabs($tab='general') { |
| 204 | 204 | if('api' !== $tab){ return false;} |
@@ -395,7 +395,6 @@ discard block |
||
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | 397 | * Formats the error code into a readable format. |
| 398 | - * @param array $args |
|
| 399 | 398 | * @return array |
| 400 | 399 | */ |
| 401 | 400 | public function format_error_code($code=false){ |