@@ -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 ) { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Build an array with the different items to add to an order |
| 126 | 126 | * |
| 127 | - * @param array $products The item list to add to the order |
|
| 127 | + * @param array $product The item list to add to the order |
|
| 128 | 128 | * |
| 129 | 129 | * @return array $item_list The item to add to order |
| 130 | 130 | */ |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | * |
| 419 | 419 | * @method wps_token_order_customer |
| 420 | 420 | * @param int $order_id OrderID. |
| 421 | - * @return mixed sha1 or false. |
|
| 421 | + * @return false|string sha1 or false. |
|
| 422 | 422 | */ |
| 423 | 423 | public static function wps_token_order_customer( $order_id, $date = null ) { |
| 424 | 424 | $date = isset( $date ) ? $date : date( 'Ym' ); |