@@ -414,6 +414,7 @@ discard block |
||
414 | 414 | |
415 | 415 | /** |
416 | 416 | * Does a multine search |
417 | + * @param string $haystack |
|
417 | 418 | */ |
418 | 419 | public function multineedle_stripos($haystack, $needles, $offset=0) { |
419 | 420 | $found = false; |
@@ -664,6 +665,7 @@ discard block |
||
664 | 665 | |
665 | 666 | /** |
666 | 667 | * Set the team memberon each item. |
668 | + * @param boolean $team_members |
|
667 | 669 | */ |
668 | 670 | public function set_team_member($id,$team_members) { |
669 | 671 | |
@@ -675,6 +677,7 @@ discard block |
||
675 | 677 | |
676 | 678 | /** |
677 | 679 | * Set the safari brand |
680 | + * @param boolean $safari_brands |
|
678 | 681 | */ |
679 | 682 | public function set_safari_brands($id,$safari_brands) { |
680 | 683 | foreach($safari_brands as $safari_brand){ |
@@ -1028,6 +1031,9 @@ discard block |
||
1028 | 1031 | } |
1029 | 1032 | } |
1030 | 1033 | |
1034 | + /** |
|
1035 | + * @return boolean |
|
1036 | + */ |
|
1031 | 1037 | function set_term($id=false,$name=false,$taxonomy=false,$parent=false){ |
1032 | 1038 | if(!$term = term_exists($name, $taxonomy)) |
1033 | 1039 | { |
@@ -1152,6 +1158,11 @@ discard block |
||
1152 | 1158 | } |
1153 | 1159 | return false; |
1154 | 1160 | } |
1161 | + |
|
1162 | + /** |
|
1163 | + * @param string $url |
|
1164 | + * @param string $thumb |
|
1165 | + */ |
|
1155 | 1166 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
1156 | 1167 | |
1157 | 1168 | if ( !$url || !$post_id ) { return new WP_Error('missing', "Need a valid URL and post ID..."); } |
@@ -207,6 +207,7 @@ |
||
207 | 207 | |
208 | 208 | /** |
209 | 209 | * format the array |
210 | + * @param string $key |
|
210 | 211 | */ |
211 | 212 | public function format_array($array,$key){ |
212 | 213 | $new_array = array(); |
@@ -552,6 +552,7 @@ |
||
552 | 552 | |
553 | 553 | /** |
554 | 554 | * A loop which runs through each leg on the tour. |
555 | + * @param boolean $importable_content |
|
555 | 556 | */ |
556 | 557 | public function process_itineraries($data,$id,$importable_content) { |
557 | 558 | $day_counter = 1; |
@@ -222,6 +222,9 @@ |
||
222 | 222 | } |
223 | 223 | } |
224 | 224 | |
225 | + /** |
|
226 | + * @param string $url |
|
227 | + */ |
|
225 | 228 | public function attach_external_image2( $url = null, $post_data = array() ) { |
226 | 229 | |
227 | 230 | if ( !$url ) { return new WP_Error('missing', "Need a valid URL"); } |
@@ -545,6 +545,7 @@ discard block |
||
545 | 545 | |
546 | 546 | /** |
547 | 547 | * Set the team memberon each item. |
548 | + * @param boolean $team_members |
|
548 | 549 | */ |
549 | 550 | public function set_team_member($id,$team_members) { |
550 | 551 | |
@@ -612,6 +613,7 @@ discard block |
||
612 | 613 | |
613 | 614 | /** |
614 | 615 | * Saves the room data |
616 | + * @param string $meta_key |
|
615 | 617 | */ |
616 | 618 | public function set_travel_info($data,$id,$meta_key) { |
617 | 619 |