@@ -117,10 +117,7 @@ discard block |
||
| 117 | 117 | /** |
| 118 | 118 | * Get the sub categories of a given category |
| 119 | 119 | * |
| 120 | - * @param integer $parent_category The main category we want to have the sub categories for |
|
| 121 | - * @param array $instance The current instance of the widget, allows to get the different selected parameters |
|
| 122 | - * |
|
| 123 | - * @return mixed $widget_content The widget content build from option |
|
| 120 | + * @return string |
|
| 124 | 121 | */ |
| 125 | 122 | public static function category_tree_output($category_id = 0, $instance) { |
| 126 | 123 | global $category_has_sub_category; |
@@ -285,7 +282,7 @@ discard block |
||
| 285 | 282 | * @param object $category The category definition |
| 286 | 283 | * @param string $output_type The output type defined from plugin option |
| 287 | 284 | * |
| 288 | - * @return mixed $content Output the category list |
|
| 285 | + * @return string $content Output the category list |
|
| 289 | 286 | */ |
| 290 | 287 | public static function category_mini_output($category, $output_type = 'list'){ |
| 291 | 288 | $content = ''; |
@@ -420,7 +417,6 @@ discard block |
||
| 420 | 417 | * @see wp_get_attachment_image_src |
| 421 | 418 | * @param unknown_type $id |
| 422 | 419 | * @param unknown_type $size |
| 423 | - * @param unknown_type $attr |
|
| 424 | 420 | * @return (string or array) |
| 425 | 421 | */ |
| 426 | 422 | public static function get_the_category_thumbnail($id, $size = 'thumbnail', $icon = false) { |
@@ -120,6 +120,7 @@ discard block |
||
| 120 | 120 | * Save a new attribute in database |
| 121 | 121 | * |
| 122 | 122 | * @param array $informationsToSet An array with the different information we want to set |
| 123 | + * @param string $dataBaseTable |
|
| 123 | 124 | * |
| 124 | 125 | * @return string $requestResponse A message that allows to know if the creation has been done correctly or not |
| 125 | 126 | */ |
@@ -141,6 +142,7 @@ discard block |
||
| 141 | 142 | * Update an existing attribute in database |
| 142 | 143 | * |
| 143 | 144 | * @param array $informationsToSet An array with the different information we want to set |
| 145 | + * @param string $dataBaseTable |
|
| 144 | 146 | * |
| 145 | 147 | * @return string $requestResponse A message that allows to know if the update has been done correctly or not |
| 146 | 148 | */ |
@@ -191,10 +191,10 @@ discard block |
||
| 191 | 191 | * Return a complete html table with header, body and content |
| 192 | 192 | * |
| 193 | 193 | * @param string $tableId The unique identifier of the table in the document |
| 194 | - * @param array $tableTitles An array with the different element to put into the table's header and footer |
|
| 194 | + * @param string[] $tableTitles An array with the different element to put into the table's header and footer |
|
| 195 | 195 | * @param array $tableRows An array with the different value to put into the table's body |
| 196 | - * @param array $tableClasses An array with the different class to affect to table rows and cols |
|
| 197 | - * @param array $tableRowsId An array with the different identifier for table lines |
|
| 196 | + * @param string[] $tableClasses An array with the different class to affect to table rows and cols |
|
| 197 | + * @param string[] $tableRowsId An array with the different identifier for table lines |
|
| 198 | 198 | * @param string $tableSummary A summary for the table |
| 199 | 199 | * @param boolean $withFooter Allow to define if the table must be create with a footer or not |
| 200 | 200 | * |
@@ -274,6 +274,7 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | * @param string $file_name The file name to check if exists in current theme |
| 276 | 276 | * @param string $dir_name Optionnal The directory name of the file to check Default : wpshop |
| 277 | + * @param string $default_dir |
|
| 277 | 278 | * |
| 278 | 279 | * @return string $file_path The good filepath to include |
| 279 | 280 | */ |
@@ -299,7 +300,7 @@ discard block |
||
| 299 | 300 | * Check if the current shop use the first method for templates. One file per element to display |
| 300 | 301 | * |
| 301 | 302 | * @param string $template_part The part to take display for, will be usefull to check what file take in care if there were a file in old method |
| 302 | - * @param string $default_template_dirThe part of website to check template for. Possible values : wpshop / admin |
|
| 303 | + * @param string $default_template_dir part of website to check template for. Possible values : wpshop / admin |
|
| 303 | 304 | * |
| 304 | 305 | * @return array First index represent if there is a file for old version support, Second index represent the file to get for support old version |
| 305 | 306 | */ |
@@ -546,6 +547,7 @@ discard block |
||
| 546 | 547 | * @param string $part The part of shop where to display the given template element |
| 547 | 548 | * @param string $template_part The template element we want to display |
| 548 | 549 | * @param array $extras_args Allows to define some parameters to spot a specific template for example |
| 550 | + * @param string $default_template_dir |
|
| 549 | 551 | * |
| 550 | 552 | * @return string The good template to take in care, regarding on the given parameters |
| 551 | 553 | */ |
@@ -742,7 +744,7 @@ discard block |
||
| 742 | 744 | * Change output for product page |
| 743 | 745 | * |
| 744 | 746 | * @param string $content The content of a post |
| 745 | - * @return Ambigous <mixed, string>|unknown |
|
| 747 | + * @return string <mixed, string>|unknown |
|
| 746 | 748 | */ |
| 747 | 749 | public static function products_page( $content = '' ) { |
| 748 | 750 | global $wp_query; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * @param string $method The default method for the form Default is set to post |
| 31 | 31 | * @param string $action The default action for the form Default is set to empty |
| 32 | 32 | * |
| 33 | - * @return mixed $the_form The complete html output of the form |
|
| 33 | + * @return string $the_form The complete html output of the form |
|
| 34 | 34 | */ |
| 35 | 35 | function form($name, $input_list, $method = 'post', $action = ''){ |
| 36 | 36 | $the_form_content_hidden = $the_form_content = ''; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * @param string $type The input type Could be: text or hidden or passowrd |
| 130 | 130 | * @param string $option Allows to define options for the input Could be readonly or disabled or style |
| 131 | 131 | * |
| 132 | - * @return mixed The output code to add to the form |
|
| 132 | + * @return string The output code to add to the form |
|
| 133 | 133 | */ |
| 134 | 134 | public static function form_input($name, $id, $value = '', $type = 'text', $option = '', $input_label = ''){ |
| 135 | 135 | $allowedType = array('text', 'hidden', 'password', 'file'); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @param mixed $value The default value for the field Default is empty |
| 153 | 153 | * @param string $option Allows to define options for the input Could be maxlength or style |
| 154 | 154 | * |
| 155 | - * @return mixed The output code to add to the form |
|
| 155 | + * @return string The output code to add to the form |
|
| 156 | 156 | */ |
| 157 | 157 | public static function form_input_textarea($name, $id, $value = '', $option = '') |
| 158 | 158 | { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * @param mixed $value The selected value for the field Default is empty |
| 168 | 168 | * @param string $option Allows to define options for the input Could be onchange |
| 169 | 169 | * |
| 170 | - * @return mixed $output The output code to add to the form |
|
| 170 | + * @return string $output The output code to add to the form |
|
| 171 | 171 | */ |
| 172 | 172 | public static function form_input_select($name, $id, $content, $value = '', $option = '', $optionValue = ''){ |
| 173 | 173 | global $comboxOptionToHide; |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * @param mixed $value The selected value for the field Default is empty |
| 216 | 216 | * @param string $option Allows to define options for the input Could be onchange |
| 217 | 217 | * |
| 218 | - * @return mixed $output The output code to add to the form |
|
| 218 | + * @return string $output The output code to add to the form |
|
| 219 | 219 | */ |
| 220 | 220 | public static function form_input_multiple_select($name, $id, $content, $value = array(), $option = '', $optionValue = '') { |
| 221 | 221 | global $comboxOptionToHide; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | * @param mixed $value The selected value for the field Default is empty |
| 259 | 259 | * @param string $option Allows to define options for the input Could be onchange |
| 260 | 260 | * |
| 261 | - * @return mixed $output The output code to add to the form |
|
| 261 | + * @return string $output The output code to add to the form |
|
| 262 | 262 | */ |
| 263 | 263 | public static function form_input_check($name, $id, $content, $value = '', $type = 'checkbox', $option = '', $optionValue = '', $input_label=''){ |
| 264 | 264 | $output = ''; |
@@ -98,7 +98,6 @@ |
||
| 98 | 98 | /** |
| 99 | 99 | * Get the sub categories of a given category |
| 100 | 100 | * |
| 101 | - * @param integer $parent_category The main category we want to have the sub categories for |
|
| 102 | 101 | */ |
| 103 | 102 | function category_tree_selector_output($category_id = 0, $wpshop_widget_categories, $instance){ |
| 104 | 103 | $category_tree_output = ''; |
@@ -45,6 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Get the url listing slug of the current class |
| 47 | 47 | * |
| 48 | + * @param string $message |
|
| 48 | 49 | * @return string The table of the class |
| 49 | 50 | */ |
| 50 | 51 | function setMessage($message){ |
@@ -665,7 +666,7 @@ discard block |
||
| 665 | 666 | /** |
| 666 | 667 | * Display inteface allowing to manage the attribute set and group details |
| 667 | 668 | * |
| 668 | - * @param object $atributeSetId The element's identifier we have to manage the details for |
|
| 669 | + * @param object $attributeSetId The element's identifier we have to manage the details for |
|
| 669 | 670 | * |
| 670 | 671 | * @return string $attributeSetDetailsManagement The html output of management interface |
| 671 | 672 | */ |
@@ -949,7 +950,7 @@ discard block |
||
| 949 | 950 | * @param integer $attributeSetId The attribute set identifier we want to get the details for |
| 950 | 951 | * @param string $attributeSetStatus optionnal The attribute set status. Allows to define if we want all attribute sets or a deleted or valid and so on |
| 951 | 952 | * |
| 952 | - * @return array $attributeSetDetailsGroups The List of attribute and attribute groups for the given attribute set |
|
| 953 | + * @return string $attributeSetDetailsGroups The List of attribute and attribute groups for the given attribute set |
|
| 953 | 954 | */ |
| 954 | 955 | public static function getAttributeSetDetails($attributeSetId, $attributeSetStatus = "'valid', 'moderated'"){ |
| 955 | 956 | global $wpdb, $validAttributeList; |
@@ -68,6 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * Get the url listing slug of the current class |
| 70 | 70 | * |
| 71 | + * @param string $message |
|
| 71 | 72 | * @return string The table of the class |
| 72 | 73 | */ |
| 73 | 74 | function setMessage($message) |
@@ -519,7 +520,7 @@ discard block |
||
| 519 | 520 | * |
| 520 | 521 | * @param integer $element_id optionnal The attribute identifier we want to get. If not specify the entire list will be returned |
| 521 | 522 | * @param string $element_status optionnal The status of element to get into database. Default is set to valid element |
| 522 | - * @param mixed $field_to_search optionnal The field we want to check the row identifier into. Default is to set id |
|
| 523 | + * @param string $field_to_search optionnal The field we want to check the row identifier into. Default is to set id |
|
| 523 | 524 | * |
| 524 | 525 | * @return object $element_list A wordpress database object containing the attribute list |
| 525 | 526 | */ |
@@ -88,7 +88,6 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * The metabox content for entity type support section in entity edition page |
| 90 | 90 | * |
| 91 | - * @param object $post The entity type being edited |
|
| 92 | 91 | */ |
| 93 | 92 | public static function wpshop_entity_support_section( $entity ) { |
| 94 | 93 | $output = ''; |
@@ -657,7 +656,7 @@ discard block |
||
| 657 | 656 | /** |
| 658 | 657 | * Define custom columns content display in post_type page for wpshop entities |
| 659 | 658 | * |
| 660 | - * @param string $columns The default column for the post_type given in second parameter |
|
| 659 | + * @param string $column The default column for the post_type given in second parameter |
|
| 661 | 660 | * @param integer $post_id The current post identifier to get information for display |
| 662 | 661 | */ |
| 663 | 662 | public static function custom_columns_content($column, $post_id) { |
@@ -131,6 +131,7 @@ discard block |
||
| 131 | 131 | * because it take a lot a time and a lot of memory => we use reference |
| 132 | 132 | * |
| 133 | 133 | * @param &HTML2PDF_myPdf object |
| 134 | + * @param HTML2PDF_myPdf $pdf |
|
| 134 | 135 | * @access public |
| 135 | 136 | */ |
| 136 | 137 | public function cloneFontFrom(&$pdf) |
@@ -523,8 +524,6 @@ discard block |
||
| 523 | 524 | /** |
| 524 | 525 | * add a Translate transformation |
| 525 | 526 | * |
| 526 | - * @param float $Tx |
|
| 527 | - * @param float $Ty |
|
| 528 | 527 | * @access public |
| 529 | 528 | */ |
| 530 | 529 | public function setTranslate($xT, $yT) |
@@ -545,8 +544,6 @@ discard block |
||
| 545 | 544 | * add a Rotate transformation |
| 546 | 545 | * |
| 547 | 546 | * @param float $angle |
| 548 | - * @param float $Cx |
|
| 549 | - * @param float $Cy |
|
| 550 | 547 | * @access public |
| 551 | 548 | */ |
| 552 | 549 | public function setRotation($angle, $xC=null, $yC=null) |
@@ -627,10 +624,18 @@ discard block |
||
| 627 | 624 | { |
| 628 | 625 | return $this->k; |
| 629 | 626 | } |
| 627 | + |
|
| 628 | + /** |
|
| 629 | + * @return double |
|
| 630 | + */ |
|
| 630 | 631 | public function getW() |
| 631 | 632 | { |
| 632 | 633 | return $this->w; |
| 633 | 634 | } |
| 635 | + |
|
| 636 | + /** |
|
| 637 | + * @return double |
|
| 638 | + */ |
|
| 634 | 639 | public function getH() |
| 635 | 640 | { |
| 636 | 641 | return $this->h; |
@@ -639,10 +644,18 @@ discard block |
||
| 639 | 644 | { |
| 640 | 645 | return $this->lMargin; |
| 641 | 646 | } |
| 647 | + |
|
| 648 | + /** |
|
| 649 | + * @return double |
|
| 650 | + */ |
|
| 642 | 651 | public function getrMargin() |
| 643 | 652 | { |
| 644 | 653 | return $this->rMargin; |
| 645 | 654 | } |
| 655 | + |
|
| 656 | + /** |
|
| 657 | + * @return double |
|
| 658 | + */ |
|
| 646 | 659 | public function gettMargin() |
| 647 | 660 | { |
| 648 | 661 | return $this->tMargin; |
@@ -969,7 +982,7 @@ discard block |
||
| 969 | 982 | * @param float $rx |
| 970 | 983 | * @param float $ry |
| 971 | 984 | * @param float $angleBegin in radians |
| 972 | - * @param float $angleEng in radians |
|
| 985 | + * @param float $angleEnd in radians |
|
| 973 | 986 | * @param boolean $direction |
| 974 | 987 | * @param boolean $drawFirst, true => add the first point |
| 975 | 988 | * @param boolean $trans apply transformation |
@@ -1041,8 +1054,8 @@ discard block |
||
| 1041 | 1054 | * @param float $rx |
| 1042 | 1055 | * @param float $ry |
| 1043 | 1056 | * @param float $angle deviation angle of the axis X |
| 1044 | - * @param boolean $l large-arc-flag |
|
| 1045 | - * @param boolean $s sweep-flag |
|
| 1057 | + * @param integer $l large-arc-flag |
|
| 1058 | + * @param integer $s sweep-flag |
|
| 1046 | 1059 | * @param boolean $trans apply transformation |
| 1047 | 1060 | * @access protected |
| 1048 | 1061 | */ |
@@ -1142,6 +1155,8 @@ discard block |
||
| 1142 | 1155 | * @param float &$x |
| 1143 | 1156 | * @param float &$y |
| 1144 | 1157 | * @param boolean $trans true => convert into PDF unit |
| 1158 | + * @param double $x |
|
| 1159 | + * @param double $y |
|
| 1145 | 1160 | * @return boolean |
| 1146 | 1161 | * @access public |
| 1147 | 1162 | */ |
@@ -1385,6 +1400,7 @@ discard block |
||
| 1385 | 1400 | * |
| 1386 | 1401 | * @access public |
| 1387 | 1402 | * @param integer $myLastPageGroup; |
| 1403 | + * @param integer $myLastPageGroup |
|
| 1388 | 1404 | */ |
| 1389 | 1405 | public function setMyLastPageGroup($myLastPageGroup) |
| 1390 | 1406 | { |
@@ -1407,6 +1423,7 @@ discard block |
||
| 1407 | 1423 | * |
| 1408 | 1424 | * @access public |
| 1409 | 1425 | * @param integer $myLastPageGroupNb; |
| 1426 | + * @param integer $myLastPageGroupNb |
|
| 1410 | 1427 | */ |
| 1411 | 1428 | public function setMyLastPageGroupNb($myLastPageGroupNb) |
| 1412 | 1429 | { |