@@ -481,7 +481,7 @@ |
||
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | /** SIGN UP - Display the commercial & newsletter form |
| 484 | - * @return void |
|
| 484 | + * @return string |
|
| 485 | 485 | */ |
| 486 | 486 | function display_commercial_newsletter_form() { |
| 487 | 487 | $output = ''; |
@@ -77,6 +77,12 @@ |
||
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param string $page_title |
|
| 82 | + * @param string $menu_title |
|
| 83 | + * @param string $menu_slug |
|
| 84 | + * @param string[] $callback |
|
| 85 | + */ |
|
| 80 | 86 | public function set_submenu_page_help( $page_title, $menu_title, $menu_slug, $callback ) { |
| 81 | 87 | $this->sub_menus[$menu_slug] = array( |
| 82 | 88 | 'page_title' => $page_title |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * Save the current state of installation process |
| 82 | 82 | * |
| 83 | 83 | * @param string $setted_state A parameter setted for saving the state of installation ( in progress, completed, ignored ) |
| 84 | - * @param array $current_db_version The current value for database version option |
|
| 84 | + * @param string $current_db_version The current value for database version option |
|
| 85 | 85 | */ |
| 86 | 86 | function installer_state_saver( $setted_state, $current_db_version ) { |
| 87 | 87 | $current_db_version['installation_state'] = $setted_state; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Get product Complete Sheet |
| 72 | 72 | * @param integer $pid |
| 73 | - * @return Ambigous <string, string> |
|
| 73 | + * @return string <string, string> |
|
| 74 | 74 | */ |
| 75 | 75 | public static function get_product_complete_sheet_galery( $pid ) { |
| 76 | 76 | $output = ''; |
@@ -157,6 +157,9 @@ discard block |
||
| 157 | 157 | return $output; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | + /** |
|
| 161 | + * @param integer $product_id |
|
| 162 | + */ |
|
| 160 | 163 | public static function get_product_complete_sheet_attachments( $product_id ) { |
| 161 | 164 | $output = ''; |
| 162 | 165 | |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * of the number of corrected product and the template of the method : ajax_checking_products_values if inconsistent product |
| 31 | 31 | * already present. |
| 32 | 32 | * |
| 33 | - * @param array $_POST['product_price'] List of the new price for the product like array( $id_product => $new_price ) |
|
| 34 | 33 | * @return JSON Response |
| 35 | 34 | */ |
| 36 | 35 | public function ajax_save_product_price() { |
@@ -257,8 +257,6 @@ |
||
| 257 | 257 | * |
| 258 | 258 | * @param int $product_id L'id du produit |
| 259 | 259 | * @param string $type Peut être varchar, integer, text, options, decimal, datetime |
| 260 | - * @param string $attribute_name Le code d'un attribut |
|
| 261 | - * @param string $attribute_value La valeur à mêttre à jour |
|
| 262 | 260 | */ |
| 263 | 261 | public function update_the_attribute_for_product($product_id, $type, $name_attribute, $value_attribute) { |
| 264 | 262 | global $wpdb; |
@@ -158,6 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * Display pagination |
| 160 | 160 | * |
| 161 | + * @param integer $current_page |
|
| 161 | 162 | * @return string |
| 162 | 163 | */ |
| 163 | 164 | function get_products_pagination( $current_page, $attribute_set_id = 1 ) { |
@@ -201,6 +202,9 @@ discard block |
||
| 201 | 202 | return $output; |
| 202 | 203 | } |
| 203 | 204 | |
| 205 | + /** |
|
| 206 | + * @param integer $product_id |
|
| 207 | + */ |
|
| 204 | 208 | function wps_product_attached_files( $product_id ) { |
| 205 | 209 | global $wpdb; |
| 206 | 210 | $output = ''; |
@@ -78,6 +78,11 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @param string $slug |
|
| 84 | + * @param string $separator |
|
| 85 | + */ |
|
| 81 | 86 | private function rewrite_term_hierarchy( $parent, &$rewrite, $slug, $separator ) { |
| 82 | 87 | $childs = get_terms( $this->taxonomy, array( 'parent' => $parent->term_id, 'hide_empty' => false ) ); |
| 83 | 88 | foreach( $childs as $child ) { |
@@ -115,6 +120,11 @@ discard block |
||
| 115 | 120 | } |
| 116 | 121 | return $permalink; |
| 117 | 122 | } |
| 123 | + |
|
| 124 | + /** |
|
| 125 | + * @param string $permalink |
|
| 126 | + * @param string $separator |
|
| 127 | + */ |
|
| 118 | 128 | private function permalink_term_hierarchy( $term, &$permalink, $taxonomy, $separator ) { |
| 119 | 129 | if( $term->parent == 0 ) { |
| 120 | 130 | $permalink = $term->slug . $separator . $permalink; |
@@ -220,6 +230,11 @@ discard block |
||
| 220 | 230 | } |
| 221 | 231 | } |
| 222 | 232 | } |
| 233 | + |
|
| 234 | + /** |
|
| 235 | + * @param string $slug |
|
| 236 | + * @param string $separator |
|
| 237 | + */ |
|
| 223 | 238 | private function rewrite_term_hierarchy( $parent, &$rewrite, $slug, $separator ) { |
| 224 | 239 | $rewrite[] = $slug . $parent->slug . $separator; |
| 225 | 240 | $childs = get_terms( $this->taxonomy, array( 'parent' => $parent->term_id, 'hide_empty' => false ) ); |
@@ -281,6 +296,11 @@ discard block |
||
| 281 | 296 | } |
| 282 | 297 | return $permalink; |
| 283 | 298 | } |
| 299 | + |
|
| 300 | + /** |
|
| 301 | + * @param string $permalink |
|
| 302 | + * @param string $separator |
|
| 303 | + */ |
|
| 284 | 304 | private function permalink_term_hierarchy( $term, &$permalink, $taxonomy, $separator ) { |
| 285 | 305 | if( $term->parent == 0 ) { |
| 286 | 306 | $permalink = $term->slug . $separator . $permalink; |
@@ -131,6 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * Construct the element when it's a text Data |
| 133 | 133 | * @param StdObject $attribute_def |
| 134 | + * @param integer $category_id |
|
| 134 | 135 | * @return string |
| 135 | 136 | */ |
| 136 | 137 | function get_filter_element_for_text_data( $attribute_def, $category_id, $current_category_child ) { |
@@ -155,6 +156,7 @@ discard block |
||
| 155 | 156 | /** |
| 156 | 157 | * Construct the element when it's a list Data |
| 157 | 158 | * @param StdObject $attribute_def |
| 159 | + * @param integer $category_id |
|
| 158 | 160 | * @return string |
| 159 | 161 | */ |
| 160 | 162 | function get_filter_element_for_list_data ( $attribute_def, $category_id, $current_category_child, $field_type, $type = 'select') { |
@@ -241,6 +243,7 @@ discard block |
||
| 241 | 243 | /** |
| 242 | 244 | * Construct the element when it's a decimal Data |
| 243 | 245 | * @param StdObject $attribute_def |
| 246 | + * @param integer $category_id |
|
| 244 | 247 | * @return string |
| 245 | 248 | */ |
| 246 | 249 | function get_filter_element_for_integer_data ( $attribute_def, $category_id, $current_category_children ) { |
@@ -268,7 +271,7 @@ discard block |
||
| 268 | 271 | * Save Products attribute values for List attribute data for a products category |
| 269 | 272 | * @param integer $category_id |
| 270 | 273 | * @param std_object $attribute_def |
| 271 | - * @param array $current_category_child |
|
| 274 | + * @param array $current_category_children |
|
| 272 | 275 | */ |
| 273 | 276 | function save_values_for_list_filterable_attribute( $category_id, $attribute_def, $current_category_children ) { |
| 274 | 277 | global $wpdb; |
@@ -462,7 +465,6 @@ discard block |
||
| 462 | 465 | |
| 463 | 466 | /** |
| 464 | 467 | * Save values for attributes |
| 465 | - * @param unknown_type $values |
|
| 466 | 468 | */ |
| 467 | 469 | function stock_values_for_attribute( $categories_id = array() ) { |
| 468 | 470 | @set_time_limit( 900 ); |