@@ -46,6 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * Get the url listing slug of the current class |
| 48 | 48 | * |
| 49 | + * @param string $message |
|
| 49 | 50 | * @return string The table of the class |
| 50 | 51 | */ |
| 51 | 52 | function setMessage($message){ |
@@ -1244,7 +1245,7 @@ discard block |
||
| 1244 | 1245 | * |
| 1245 | 1246 | * @param integer $element_id optionnal The attribute identifier we want to get. If not specify the entire list will be returned |
| 1246 | 1247 | * @param string $element_status optionnal The status of element to get into database. Default is set to valid element |
| 1247 | - * @param mixed $field_to_search optionnal The field we want to check the row identifier into. Default is to set id |
|
| 1248 | + * @param string $field_to_search optionnal The field we want to check the row identifier into. Default is to set id |
|
| 1248 | 1249 | * |
| 1249 | 1250 | * @return object $element_list A wordpress database object containing the attribute list |
| 1250 | 1251 | */ |
@@ -1484,9 +1485,6 @@ discard block |
||
| 1484 | 1485 | * Get the existing element list into database |
| 1485 | 1486 | * |
| 1486 | 1487 | * @param integer $elementId optionnal The element identifier we want to get. If not specify the entire list will be returned |
| 1487 | - * @param string $elementStatus optionnal The status of element to get into database. Default is set to valid element |
|
| 1488 | - * |
|
| 1489 | - * @return object $elements A wordpress database object containing the element list |
|
| 1490 | 1488 | */ |
| 1491 | 1489 | public static function getElementWithAttributeAndValue($entityId, $elementId, $language, $keyForArray = '', $outputType = '') { |
| 1492 | 1490 | global $wpdb; |
@@ -1625,7 +1623,7 @@ discard block |
||
| 1625 | 1623 | /** |
| 1626 | 1624 | * Traduit le shortcode et affiche la valeur d'un attribut donn� |
| 1627 | 1625 | * @param array $atts : tableau de param�tre du shortcode |
| 1628 | - * @return mixed |
|
| 1626 | + * @return string|null |
|
| 1629 | 1627 | **/ |
| 1630 | 1628 | public static function wpshop_att_val_func($atts) { |
| 1631 | 1629 | global $wpdb; |
@@ -1914,7 +1912,7 @@ discard block |
||
| 1914 | 1912 | |
| 1915 | 1913 | /** |
| 1916 | 1914 | * |
| 1917 | - * @param array $attribute_list |
|
| 1915 | + * @param array $attribute_code |
|
| 1918 | 1916 | * @param string $output_from |
| 1919 | 1917 | * @return string The output for |
| 1920 | 1918 | */ |
@@ -2455,6 +2453,12 @@ discard block |
||
| 2455 | 2453 | return $affected_value; |
| 2456 | 2454 | } |
| 2457 | 2455 | |
| 2456 | + /** |
|
| 2457 | + * @param string $attr_code |
|
| 2458 | + * @param string $attr_option |
|
| 2459 | + * |
|
| 2460 | + * @return string |
|
| 2461 | + */ |
|
| 2458 | 2462 | public static function get_attribute_option_output($item, $attr_code, $attr_option, $additionnal_params = '') { |
| 2459 | 2463 | switch($attr_code){ |
| 2460 | 2464 | case 'is_downloadable_': |
@@ -3187,7 +3191,6 @@ discard block |
||
| 3187 | 3191 | * Define the different field available for bulk edition for entities. Attributes to display are defined by checking box in attribute option |
| 3188 | 3192 | * |
| 3189 | 3193 | * @param string $column_name The column name for output type definition |
| 3190 | - * @param string $post_type The current |
|
| 3191 | 3194 | * |
| 3192 | 3195 | */ |
| 3193 | 3196 | function quick_edit( $column_name, $entity ) { |
@@ -3212,7 +3215,6 @@ discard block |
||
| 3212 | 3215 | * Define the different field available for bulk edition for entities. Attributes to display are defined by checking box in attribute option |
| 3213 | 3216 | * |
| 3214 | 3217 | * @param string $column_name The column name for output type definition |
| 3215 | - * @param string $post_type The current |
|
| 3216 | 3218 | * |
| 3217 | 3219 | */ |
| 3218 | 3220 | public static function bulk_edit( $column_name, $entity ) { |
@@ -38,6 +38,10 @@ discard block |
||
| 38 | 38 | return $url; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $param |
|
| 43 | + * @param string $value |
|
| 44 | + */ |
|
| 41 | 45 | public static function construct_url_parameters($url, $param, $value) { |
| 42 | 46 | $interoguation_marker_pos = strpos($url, '?'); |
| 43 | 47 | if($interoguation_marker_pos===false) |
@@ -86,7 +90,7 @@ discard block |
||
| 86 | 90 | * Display the list of payment methods available |
| 87 | 91 | * |
| 88 | 92 | * @param integer $order_id The order id if existing - Useful when user does not finish its order and want to validateit later |
| 89 | - * @return string The different payment method |
|
| 93 | + * @return string[] The different payment method |
|
| 90 | 94 | */ |
| 91 | 95 | function __display_payment_methods_choice_form($order_id=0, $cart_type = 'cart') { |
| 92 | 96 | $output = ''; |
@@ -250,6 +254,9 @@ discard block |
||
| 250 | 254 | } |
| 251 | 255 | |
| 252 | 256 | |
| 257 | + /** |
|
| 258 | + * @param string|null $payment_status |
|
| 259 | + */ |
|
| 253 | 260 | function setOrderPaymentStatus( $order_id, $payment_status ) { |
| 254 | 261 | /** Get order main information */ |
| 255 | 262 | $order = get_post_meta($order_id, '_order_postmeta', true); |
@@ -377,7 +384,7 @@ discard block |
||
| 377 | 384 | * Allows to inform customer that he would pay a partial amount on this order |
| 378 | 385 | * |
| 379 | 386 | * @param float $current_order_total The current order total to pay before partial amount calcul |
| 380 | - * @return array The amount to pay / A html output with amount to pay and different information |
|
| 387 | + * @return string The amount to pay / A html output with amount to pay and different information |
|
| 381 | 388 | */ |
| 382 | 389 | function partial_payment_calcul( $current_order_total, $for = 'for_all' ) { |
| 383 | 390 | $output = ''; |
@@ -482,6 +489,7 @@ discard block |
||
| 482 | 489 | * @param array $order_meta The complete order meta informations |
| 483 | 490 | * @param integer $payment_index The payment to add/update data for |
| 484 | 491 | * @param array $params : infos sended by the bank, array structure : ('method', 'waited amount', 'status', 'author', 'payment reference', 'date', 'received amount') |
| 492 | + * @param integer $order_id |
|
| 485 | 493 | * @return array The order new meta informations |
| 486 | 494 | */ |
| 487 | 495 | public static function add_new_payment_to_order( $order_id, $order_meta, $payment_index, $params, $bank_response ) { |