@@ -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(); |
@@ -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"); } |
@@ -584,6 +584,7 @@ discard block |
||
| 584 | 584 | |
| 585 | 585 | /** |
| 586 | 586 | * Set the team memberon each item. |
| 587 | + * @param boolean $team_members |
|
| 587 | 588 | */ |
| 588 | 589 | public function set_team_member($id,$team_members) { |
| 589 | 590 | |
@@ -595,6 +596,7 @@ discard block |
||
| 595 | 596 | |
| 596 | 597 | /** |
| 597 | 598 | * Set the safari brand |
| 599 | + * @param boolean $safari_brands |
|
| 598 | 600 | */ |
| 599 | 601 | public function set_safari_brands($id,$safari_brands) { |
| 600 | 602 | foreach($safari_brands as $safari_brand){ |
@@ -622,6 +622,7 @@ discard block |
||
| 622 | 622 | |
| 623 | 623 | /** |
| 624 | 624 | * Set the team memberon each item. |
| 625 | + * @param boolean $team_members |
|
| 625 | 626 | */ |
| 626 | 627 | public function set_team_member($id, $team_members) |
| 627 | 628 | { |
@@ -634,6 +635,7 @@ discard block |
||
| 634 | 635 | |
| 635 | 636 | /** |
| 636 | 637 | * Saves the room data |
| 638 | + * @param string $meta_key |
|
| 637 | 639 | */ |
| 638 | 640 | public function set_travel_info($data, $id, $meta_key) |
| 639 | 641 | { |
@@ -674,6 +674,9 @@ discard block |
||
| 674 | 674 | return $result; |
| 675 | 675 | } |
| 676 | 676 | |
| 677 | + /** |
|
| 678 | + * @return boolean |
|
| 679 | + */ |
|
| 677 | 680 | public function set_term($id=false,$name=false,$taxonomy=false,$parent=false){ |
| 678 | 681 | if(!$term = term_exists($name, $taxonomy)) |
| 679 | 682 | { |
@@ -910,6 +913,10 @@ discard block |
||
| 910 | 913 | return false; |
| 911 | 914 | } |
| 912 | 915 | |
| 916 | + /** |
|
| 917 | + * @param string $url |
|
| 918 | + * @param string $thumb |
|
| 919 | + */ |
|
| 913 | 920 | public function attach_external_image2( $url = null, $post_id = null, $thumb = null, $filename = null, $post_data = array() ) { |
| 914 | 921 | |
| 915 | 922 | if ( !$url || !$post_id ) { return new WP_Error('missing', "Need a valid URL and post ID..."); } |
@@ -1018,6 +1025,7 @@ discard block |
||
| 1018 | 1025 | |
| 1019 | 1026 | /** |
| 1020 | 1027 | * Does a multine search |
| 1028 | + * @param string $haystack |
|
| 1021 | 1029 | */ |
| 1022 | 1030 | public function multineedle_stripos($haystack, $needles, $offset=0) { |
| 1023 | 1031 | $found = false; |
@@ -568,6 +568,7 @@ discard block |
||
| 568 | 568 | |
| 569 | 569 | /** |
| 570 | 570 | * A loop which runs through each leg on the tour. |
| 571 | + * @param boolean $importable_content |
|
| 571 | 572 | */ |
| 572 | 573 | public function process_itineraries($data,$id,$importable_content) { |
| 573 | 574 | $day_counter = 1; |
@@ -822,6 +823,7 @@ discard block |
||
| 822 | 823 | * |
| 823 | 824 | * @param $day array |
| 824 | 825 | * @param $id string |
| 826 | + * @param integer $leg_counter |
|
| 825 | 827 | * @return boolean / string |
| 826 | 828 | */ |
| 827 | 829 | public function set_destination($day,$id,$leg_counter) { |