@@ -442,6 +442,9 @@ discard block |
||
| 442 | 442 | * @param string corner |
| 443 | 443 | * @param string join |
| 444 | 444 | * @param array dash |
| 445 | + * @param double $width |
|
| 446 | + * @param string $cap |
|
| 447 | + * @param string $join |
|
| 445 | 448 | */ |
| 446 | 449 | protected function _set_line_style($width, $cap, $join, $dash) { |
| 447 | 450 | |
@@ -795,8 +798,8 @@ discard block |
||
| 795 | 798 | * @param string $font the font file to use |
| 796 | 799 | * @param float $size the font size, in points |
| 797 | 800 | * @param array $color |
| 798 | - * @param float $adjust word spacing adjustment |
|
| 799 | - * @param float $angle angle to write the text at, measured CW starting from the x-axis |
|
| 801 | + * @param integer $adjust word spacing adjustment |
|
| 802 | + * @param integer $angle angle to write the text at, measured CW starting from the x-axis |
|
| 800 | 803 | */ |
| 801 | 804 | function page_text($x, $y, $text, $font, $size, $color = array(0,0,0), |
| 802 | 805 | $adjust = 0, $angle = 0, $blend = "Normal", $opacity = 1.0) { |
@@ -742,6 +742,10 @@ discard block |
||
| 742 | 742 | * Assume that __set will be also called when this is called, so do not check validity again. |
| 743 | 743 | * Only created, if !important exists -> always set true. |
| 744 | 744 | */ |
| 745 | + |
|
| 746 | + /** |
|
| 747 | + * @param string $prop |
|
| 748 | + */ |
|
| 745 | 749 | function important_set($prop) { |
| 746 | 750 | $prop = str_replace("-", "_", $prop); |
| 747 | 751 | $this->_important_props[$prop] = true; |
@@ -1276,7 +1280,8 @@ discard block |
||
| 1276 | 1280 | /** |
| 1277 | 1281 | * Return a single border property |
| 1278 | 1282 | * |
| 1279 | - * @return mixed |
|
| 1283 | + * @param string $side |
|
| 1284 | + * @return string |
|
| 1280 | 1285 | */ |
| 1281 | 1286 | protected function _get_border($side) { |
| 1282 | 1287 | $color = $this->__get("border_" . $side . "_color"); |
@@ -1363,6 +1368,10 @@ discard block |
||
| 1363 | 1368 | * Applicable for background, border, padding, margin, font, list_style |
| 1364 | 1369 | * Note: $type has a leading underscore (or is empty), the others not. |
| 1365 | 1370 | */ |
| 1371 | + |
|
| 1372 | + /** |
|
| 1373 | + * @param string $side |
|
| 1374 | + */ |
|
| 1366 | 1375 | protected function _set_style_side_type($style,$side,$type,$val,$important) { |
| 1367 | 1376 | if ( !isset($this->_important_props[$style.'_'.$side.$type]) || $important) { |
| 1368 | 1377 | //see __set and __get, on all assignments clear cache! |
@@ -1381,6 +1390,9 @@ discard block |
||
| 1381 | 1390 | $this->_set_style_side_type($style,'left',$type,$left,$important); |
| 1382 | 1391 | } |
| 1383 | 1392 | |
| 1393 | + /** |
|
| 1394 | + * @param boolean $important |
|
| 1395 | + */ |
|
| 1384 | 1396 | protected function _set_style_type($style,$type,$val,$important) { |
| 1385 | 1397 | $arr = explode(" ", $val); |
| 1386 | 1398 | switch (count($arr)) { |
@@ -1404,6 +1416,10 @@ discard block |
||
| 1404 | 1416 | $this->_props[$style.$type] = $val; |
| 1405 | 1417 | } |
| 1406 | 1418 | |
| 1419 | + /** |
|
| 1420 | + * @param string $style |
|
| 1421 | + * @param string $type |
|
| 1422 | + */ |
|
| 1407 | 1423 | protected function _set_style_type_important($style,$type,$val) { |
| 1408 | 1424 | $this->_set_style_type($style,$type,$val,isset($this->_important_props[$style.$type])); |
| 1409 | 1425 | } |
@@ -1411,12 +1427,21 @@ discard block |
||
| 1411 | 1427 | /* Anyway only called if _important matches and is assigned |
| 1412 | 1428 | * E.g. _set_style_side_type($style,$side,'',str_replace("none", "0px", $val),isset($this->_important_props[$style.'_'.$side])); |
| 1413 | 1429 | */ |
| 1430 | + |
|
| 1431 | + /** |
|
| 1432 | + * @param string $style |
|
| 1433 | + * @param string $side |
|
| 1434 | + */ |
|
| 1414 | 1435 | protected function _set_style_side_width_important($style,$side,$val) { |
| 1415 | 1436 | //see __set and __get, on all assignments clear cache! |
| 1416 | 1437 | $this->_prop_cache[$style.'_'.$side] = null; |
| 1417 | 1438 | $this->_props[$style.'_'.$side] = str_replace("none", "0px", $val); |
| 1418 | 1439 | } |
| 1419 | 1440 | |
| 1441 | + /** |
|
| 1442 | + * @param string $style |
|
| 1443 | + * @param boolean $important |
|
| 1444 | + */ |
|
| 1420 | 1445 | protected function _set_style($style,$val,$important) { |
| 1421 | 1446 | if ( !isset($this->_important_props[$style]) || $important) { |
| 1422 | 1447 | if ($important) { |
@@ -1505,7 +1530,6 @@ discard block |
||
| 1505 | 1530 | * Set the background image url |
| 1506 | 1531 | * |
| 1507 | 1532 | * @link http://www.w3.org/TR/CSS21/colors.html#background-properties |
| 1508 | - * @param string $url |
|
| 1509 | 1533 | */ |
| 1510 | 1534 | function set_background_image($val) { |
| 1511 | 1535 | //see __set and __get, on all assignments clear cache, not needed on direct set through __set |
@@ -1769,6 +1793,7 @@ discard block |
||
| 1769 | 1793 | * |
| 1770 | 1794 | * @param string $side |
| 1771 | 1795 | * @param string $border_spec ([width] [style] [color]) |
| 1796 | + * @param boolean $important |
|
| 1772 | 1797 | */ |
| 1773 | 1798 | protected function _set_border($side, $border_spec, $important) { |
| 1774 | 1799 | $border_spec = str_replace(",", " ", $border_spec); |
@@ -129,7 +129,6 @@ |
||
| 129 | 129 | * added to the clone. This method is overidden in order to remove |
| 130 | 130 | * frames from the cellmap properly. |
| 131 | 131 | * |
| 132 | - * @param Frame $row |
|
| 133 | 132 | */ |
| 134 | 133 | function split($child = null) { |
| 135 | 134 | |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * Sets the stroke colour |
| 181 | 181 | * |
| 182 | - * @param array $color |
|
| 182 | + * @param array $colour |
|
| 183 | 183 | */ |
| 184 | 184 | protected function _set_stroke_colour($colour) { |
| 185 | 185 | $colour[0] = round(255 * $colour[0]); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | /** |
| 197 | 197 | * Sets the fill colour |
| 198 | 198 | * |
| 199 | - * @param array $color |
|
| 199 | + * @param array $colour |
|
| 200 | 200 | */ |
| 201 | 201 | protected function _set_fill_colour($colour) { |
| 202 | 202 | $colour[0] = round(255 * $colour[0]); |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | * @param string $font the font file to use |
| 392 | 392 | * @param float $size the font size, in points |
| 393 | 393 | * @param array $color |
| 394 | - * @param float $adjust word spacing adjustment |
|
| 394 | + * @param integer $adjust word spacing adjustment |
|
| 395 | 395 | */ |
| 396 | 396 | function text($x, $y, $text, $font, $size, $color = array(0,0,0), $adjust = 0){} |
| 397 | 397 | |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | * @param string $text the text to be sized |
| 422 | 422 | * @param string $font the desired font |
| 423 | 423 | * @param float $size the desired font size |
| 424 | - * @param float $spacing word spacing, if any |
|
| 424 | + * @param integer $spacing word spacing, if any |
|
| 425 | 425 | * @return float |
| 426 | 426 | */ |
| 427 | 427 | function get_text_width($text, $font, $size, $spacing = 0){} |
@@ -347,6 +347,8 @@ discard block |
||
| 347 | 347 | |
| 348 | 348 | /** |
| 349 | 349 | *destination object, used to specify the location for the user to jump to, presently on opening |
| 350 | + * @param integer $id |
|
| 351 | + * @param string $action |
|
| 350 | 352 | */ |
| 351 | 353 | protected function o_destination($id, $action, $options = '') { |
| 352 | 354 | if ($action !== 'new') { |
@@ -384,6 +386,7 @@ discard block |
||
| 384 | 386 | |
| 385 | 387 | /** |
| 386 | 388 | * set the viewer preferences |
| 389 | + * @param string $action |
|
| 387 | 390 | */ |
| 388 | 391 | protected function o_viewerPreferences($id, $action, $options = '') { |
| 389 | 392 | if ($action !== 'new') { |
@@ -424,6 +427,7 @@ discard block |
||
| 424 | 427 | |
| 425 | 428 | /** |
| 426 | 429 | * define the document catalog, the overall controller for the document |
| 430 | + * @param string $action |
|
| 427 | 431 | */ |
| 428 | 432 | protected function o_catalog($id, $action, $options = '') { |
| 429 | 433 | if ($action !== 'new') { |
@@ -490,6 +494,8 @@ discard block |
||
| 490 | 494 | |
| 491 | 495 | /** |
| 492 | 496 | * object which is a parent to the pages in the document |
| 497 | + * @param integer $id |
|
| 498 | + * @param string $action |
|
| 493 | 499 | */ |
| 494 | 500 | protected function o_pages($id, $action, $options = '') { |
| 495 | 501 | if ($action !== 'new') { |
@@ -623,6 +629,8 @@ discard block |
||
| 623 | 629 | |
| 624 | 630 | /** |
| 625 | 631 | * define the outlines in the doc, empty for now |
| 632 | + * @param integer $id |
|
| 633 | + * @param string $action |
|
| 626 | 634 | */ |
| 627 | 635 | protected function o_outlines($id, $action, $options = '') { |
| 628 | 636 | if ($action !== 'new') { |
@@ -658,6 +666,8 @@ discard block |
||
| 658 | 666 | |
| 659 | 667 | /** |
| 660 | 668 | * an object to hold the font description |
| 669 | + * @param integer $id |
|
| 670 | + * @param string $action |
|
| 661 | 671 | */ |
| 662 | 672 | protected function o_font($id, $action, $options = '') { |
| 663 | 673 | if ($action !== 'new') { |
@@ -827,6 +837,8 @@ discard block |
||
| 827 | 837 | |
| 828 | 838 | /** |
| 829 | 839 | * a font descriptor, needed for including additional fonts |
| 840 | + * @param integer $id |
|
| 841 | + * @param string $action |
|
| 830 | 842 | */ |
| 831 | 843 | protected function o_fontDescriptor($id, $action, $options = '') { |
| 832 | 844 | if ($action !== 'new') { |
@@ -885,6 +897,8 @@ discard block |
||
| 885 | 897 | |
| 886 | 898 | /** |
| 887 | 899 | * the font encoding |
| 900 | + * @param integer $id |
|
| 901 | + * @param string $action |
|
| 888 | 902 | */ |
| 889 | 903 | protected function o_fontEncoding($id, $action, $options = '') { |
| 890 | 904 | if ($action !== 'new') { |
@@ -930,6 +944,7 @@ discard block |
||
| 930 | 944 | |
| 931 | 945 | /** |
| 932 | 946 | * a descendent cid font, needed for unicode fonts |
| 947 | + * @param string $action |
|
| 933 | 948 | */ |
| 934 | 949 | protected function o_fontDescendentCID($id, $action, $options = '') { |
| 935 | 950 | if ($action !== 'new') { |
@@ -1019,6 +1034,7 @@ discard block |
||
| 1019 | 1034 | |
| 1020 | 1035 | /** |
| 1021 | 1036 | * a font glyph to character map, needed for unicode fonts |
| 1037 | + * @param string $action |
|
| 1022 | 1038 | */ |
| 1023 | 1039 | protected function o_fontGIDtoCIDMap($id, $action, $options = '') { |
| 1024 | 1040 | if ($action !== 'new') { |
@@ -1061,6 +1077,7 @@ discard block |
||
| 1061 | 1077 | |
| 1062 | 1078 | /** |
| 1063 | 1079 | * the document procset, solves some problems with printing to old PS printers |
| 1080 | + * @param string $action |
|
| 1064 | 1081 | */ |
| 1065 | 1082 | protected function o_procset($id, $action, $options = '') { |
| 1066 | 1083 | if ($action !== 'new') { |
@@ -1099,6 +1116,7 @@ discard block |
||
| 1099 | 1116 | |
| 1100 | 1117 | /** |
| 1101 | 1118 | * define the document information |
| 1119 | + * @param integer $id |
|
| 1102 | 1120 | */ |
| 1103 | 1121 | protected function o_info($id, $action, $options = '') { |
| 1104 | 1122 | if ($action !== 'new') { |
@@ -1151,6 +1169,8 @@ discard block |
||
| 1151 | 1169 | |
| 1152 | 1170 | /** |
| 1153 | 1171 | * an action object, used to link to URLS initially |
| 1172 | + * @param integer $id |
|
| 1173 | + * @param string $action |
|
| 1154 | 1174 | */ |
| 1155 | 1175 | protected function o_action($id, $action, $options = '') { |
| 1156 | 1176 | if ($action !== 'new') { |
@@ -1200,6 +1220,8 @@ discard block |
||
| 1200 | 1220 | /** |
| 1201 | 1221 | * an annotation object, this will add an annotation to the current page. |
| 1202 | 1222 | * initially will support just link annotations |
| 1223 | + * @param integer $id |
|
| 1224 | + * @param string $action |
|
| 1203 | 1225 | */ |
| 1204 | 1226 | protected function o_annotation($id, $action, $options = '') { |
| 1205 | 1227 | if ($action !== 'new') { |
@@ -1258,6 +1280,7 @@ discard block |
||
| 1258 | 1280 | |
| 1259 | 1281 | /** |
| 1260 | 1282 | * a page object, it also creates a contents object to hold its contents |
| 1283 | + * @param string $action |
|
| 1261 | 1284 | */ |
| 1262 | 1285 | protected function o_page($id, $action, $options = '') { |
| 1263 | 1286 | if ($action !== 'new') { |
@@ -1342,6 +1365,8 @@ discard block |
||
| 1342 | 1365 | |
| 1343 | 1366 | /** |
| 1344 | 1367 | * the contents objects hold all of the content which appears on pages |
| 1368 | + * @param integer $id |
|
| 1369 | + * @param string $action |
|
| 1345 | 1370 | */ |
| 1346 | 1371 | protected function o_contents($id, $action, $options = '') { |
| 1347 | 1372 | if ($action !== 'new') { |
@@ -1397,6 +1422,10 @@ discard block |
||
| 1397 | 1422 | } |
| 1398 | 1423 | } |
| 1399 | 1424 | |
| 1425 | + /** |
|
| 1426 | + * @param integer $id |
|
| 1427 | + * @param string $action |
|
| 1428 | + */ |
|
| 1400 | 1429 | protected function o_embedjs($id, $action, $code = '') { |
| 1401 | 1430 | if ($action !== 'new') { |
| 1402 | 1431 | $o = & $this->objects[$id]; |
@@ -1419,6 +1448,10 @@ discard block |
||
| 1419 | 1448 | } |
| 1420 | 1449 | } |
| 1421 | 1450 | |
| 1451 | + /** |
|
| 1452 | + * @param integer $id |
|
| 1453 | + * @param string $action |
|
| 1454 | + */ |
|
| 1422 | 1455 | protected function o_javascript($id, $action, $code = '') { |
| 1423 | 1456 | if ($action !== 'new') { |
| 1424 | 1457 | $o = & $this->objects[$id]; |
@@ -1444,6 +1477,8 @@ discard block |
||
| 1444 | 1477 | |
| 1445 | 1478 | /** |
| 1446 | 1479 | * an image object, will be an XObject in the document, includes description and data |
| 1480 | + * @param integer $id |
|
| 1481 | + * @param string $action |
|
| 1447 | 1482 | */ |
| 1448 | 1483 | protected function o_image($id, $action, $options = '') { |
| 1449 | 1484 | if ($action !== 'new') { |
@@ -1561,6 +1596,8 @@ discard block |
||
| 1561 | 1596 | |
| 1562 | 1597 | /** |
| 1563 | 1598 | * graphics state object |
| 1599 | + * @param integer $id |
|
| 1600 | + * @param string $action |
|
| 1564 | 1601 | */ |
| 1565 | 1602 | protected function o_extGState($id, $action, $options = "") { |
| 1566 | 1603 | static $valid_params = array("LW", "LC", "LC", "LJ", "ML", |
@@ -1604,6 +1641,8 @@ discard block |
||
| 1604 | 1641 | |
| 1605 | 1642 | /** |
| 1606 | 1643 | * encryption object. |
| 1644 | + * @param integer $id |
|
| 1645 | + * @param string $action |
|
| 1607 | 1646 | */ |
| 1608 | 1647 | protected function o_encryption($id, $action, $options = '') { |
| 1609 | 1648 | if ($action !== 'new') { |
@@ -1679,6 +1718,7 @@ discard block |
||
| 1679 | 1718 | |
| 1680 | 1719 | /** |
| 1681 | 1720 | * calculate the 16 byte version of the 128 bit md5 digest of the string |
| 1721 | + * @param string $string |
|
| 1682 | 1722 | */ |
| 1683 | 1723 | function md5_16($string) { |
| 1684 | 1724 | $tmp = md5($string); |
@@ -1765,6 +1805,11 @@ discard block |
||
| 1765 | 1805 | |
| 1766 | 1806 | /** |
| 1767 | 1807 | * add a link in the document to an external URL |
| 1808 | + * @param string $url |
|
| 1809 | + * @param double $x0 |
|
| 1810 | + * @param double $y0 |
|
| 1811 | + * @param double $x1 |
|
| 1812 | + * @param double $y1 |
|
| 1768 | 1813 | */ |
| 1769 | 1814 | function addLink($url, $x0, $y0, $x1, $y1) { |
| 1770 | 1815 | $this->numObj++; |
@@ -1775,6 +1820,11 @@ discard block |
||
| 1775 | 1820 | |
| 1776 | 1821 | /** |
| 1777 | 1822 | * add a link in the document to an internal destination (ie. within the document) |
| 1823 | + * @param string $label |
|
| 1824 | + * @param double $x0 |
|
| 1825 | + * @param double $y0 |
|
| 1826 | + * @param double $x1 |
|
| 1827 | + * @param double $y1 |
|
| 1778 | 1828 | */ |
| 1779 | 1829 | function addInternalLink($label, $x0, $y0, $x1, $y1) { |
| 1780 | 1830 | $this->numObj++; |
@@ -2561,6 +2611,10 @@ discard block |
||
| 2561 | 2611 | |
| 2562 | 2612 | /** |
| 2563 | 2613 | * draw a line from one set of coordinates to another |
| 2614 | + * @param double $x1 |
|
| 2615 | + * @param double $y1 |
|
| 2616 | + * @param double $x2 |
|
| 2617 | + * @param double $y2 |
|
| 2564 | 2618 | */ |
| 2565 | 2619 | function line($x1, $y1, $x2, $y2) { |
| 2566 | 2620 | $this->objects[$this->currentContents]['c'] .= |
@@ -2735,6 +2789,7 @@ discard block |
||
| 2735 | 2789 | |
| 2736 | 2790 | /** |
| 2737 | 2791 | * draw a polygon, the syntax for this is similar to the GD polygon command |
| 2792 | + * @param integer $np |
|
| 2738 | 2793 | */ |
| 2739 | 2794 | function polygon($p, $np, $f = 0) { |
| 2740 | 2795 | $this->objects[$this->currentContents]['c'].= "\n"; |
@@ -2755,6 +2810,10 @@ discard block |
||
| 2755 | 2810 | /** |
| 2756 | 2811 | * a filled rectangle, note that it is the width and height of the rectangle which are the secondary paramaters, not |
| 2757 | 2812 | * the coordinates of the upper-right corner |
| 2813 | + * @param double $x1 |
|
| 2814 | + * @param double $y1 |
|
| 2815 | + * @param double $width |
|
| 2816 | + * @param double $height |
|
| 2758 | 2817 | */ |
| 2759 | 2818 | function filledRectangle($x1, $y1, $width, $height) { |
| 2760 | 2819 | $this->objects[$this->currentContents]['c'].= "\n".sprintf('%.3F', $x1) .' '.sprintf('%.3F', $y1) .' '.sprintf('%.3F', $width) .' '.sprintf('%.3F', $height) .' re f'; |
@@ -2764,6 +2823,10 @@ discard block |
||
| 2764 | 2823 | /** |
| 2765 | 2824 | * draw a rectangle, note that it is the width and height of the rectangle which are the secondary paramaters, not |
| 2766 | 2825 | * the coordinates of the upper-right corner |
| 2826 | + * @param double $x1 |
|
| 2827 | + * @param double $y1 |
|
| 2828 | + * @param double $width |
|
| 2829 | + * @param double $height |
|
| 2767 | 2830 | */ |
| 2768 | 2831 | function rectangle($x1, $y1, $width, $height) { |
| 2769 | 2832 | $this->objects[$this->currentContents]['c'].= "\n".sprintf('%.3F', $x1) .' '.sprintf('%.3F', $y1) .' '.sprintf('%.3F', $width) .' '.sprintf('%.3F', $height) .' re S'; |
@@ -2875,6 +2938,7 @@ discard block |
||
| 2875 | 2938 | |
| 2876 | 2939 | /** |
| 2877 | 2940 | * return the height in units of the current font in the given size |
| 2941 | + * @param double $size |
|
| 2878 | 2942 | */ |
| 2879 | 2943 | function getFontHeight($size) { |
| 2880 | 2944 | if (!$this->numFonts) { |
@@ -3064,6 +3128,8 @@ discard block |
||
| 3064 | 3128 | * on the page the text will end |
| 3065 | 3129 | * |
| 3066 | 3130 | * @access private |
| 3131 | + * @param integer $angle |
|
| 3132 | + * @param integer $wa |
|
| 3067 | 3133 | */ |
| 3068 | 3134 | function PRVTgetTextPosition($x, $y, $angle, $size, $wa, $text) { |
| 3069 | 3135 | // given this information return an array containing x and y for the end position as elements 0 and 1 |
@@ -3468,6 +3534,8 @@ discard block |
||
| 3468 | 3534 | * do a part of the calculation for sorting out the justification of the text |
| 3469 | 3535 | * |
| 3470 | 3536 | * @access private |
| 3537 | + * @param integer $adjust |
|
| 3538 | + * @param string $justification |
|
| 3471 | 3539 | */ |
| 3472 | 3540 | function PRVTadjustWrapText($text, $actual, $width, &$x, &$adjust, $justification) { |
| 3473 | 3541 | switch ($justification) { |
@@ -3717,6 +3785,7 @@ discard block |
||
| 3717 | 3785 | |
| 3718 | 3786 | /** |
| 3719 | 3787 | * open an existing object for editing |
| 3788 | + * @param integer $id |
|
| 3720 | 3789 | */ |
| 3721 | 3790 | function reopenObject($id) { |
| 3722 | 3791 | $this->nStack++; |
@@ -3748,6 +3817,7 @@ discard block |
||
| 3748 | 3817 | |
| 3749 | 3818 | /** |
| 3750 | 3819 | * stop an object from appearing on pages from this point on |
| 3820 | + * @param integer $id |
|
| 3751 | 3821 | */ |
| 3752 | 3822 | function stopObject($id) { |
| 3753 | 3823 | // if an object has been appearing on pages up to now, then stop it, this page will |
@@ -3760,6 +3830,7 @@ discard block |
||
| 3760 | 3830 | |
| 3761 | 3831 | /** |
| 3762 | 3832 | * after an object has been created, it wil only show if it has been added, using this function. |
| 3833 | + * @param integer $id |
|
| 3763 | 3834 | */ |
| 3764 | 3835 | function addObject($id, $options = 'add') { |
| 3765 | 3836 | // add the specified object to the page |
@@ -3835,6 +3906,7 @@ discard block |
||
| 3835 | 3906 | |
| 3836 | 3907 | /** |
| 3837 | 3908 | * add content to the documents info object |
| 3909 | + * @param string $label |
|
| 3838 | 3910 | */ |
| 3839 | 3911 | function addInfo($label, $value = 0) { |
| 3840 | 3912 | // this will only work if the label is one of the valid ones. |
@@ -3870,6 +3942,8 @@ discard block |
||
| 3870 | 3942 | * extract an integer from a position in a byte stream |
| 3871 | 3943 | * |
| 3872 | 3944 | * @access private |
| 3945 | + * @param integer $pos |
|
| 3946 | + * @param integer $num |
|
| 3873 | 3947 | */ |
| 3874 | 3948 | function PRVT_getBytes(&$data, $pos, $num) { |
| 3875 | 3949 | // return the integer represented by $num bytes from $pos within $data |
@@ -3936,6 +4010,9 @@ discard block |
||
| 3936 | 4010 | /** |
| 3937 | 4011 | * add a PNG image into the document, from a file |
| 3938 | 4012 | * this should work with remote files |
| 4013 | + * @param string $file |
|
| 4014 | + * @param double $x |
|
| 4015 | + * @param double $y |
|
| 3939 | 4016 | */ |
| 3940 | 4017 | function addPngFromFile($file, $x, $y, $w = 0, $h = 0) { |
| 3941 | 4018 | //if already cached, need not to read again |
@@ -3978,6 +4055,7 @@ discard block |
||
| 3978 | 4055 | |
| 3979 | 4056 | /** |
| 3980 | 4057 | * add a PNG image into the document, from a memory buffer of the file |
| 4058 | + * @param null|string $data |
|
| 3981 | 4059 | */ |
| 3982 | 4060 | function addPngFromBuf($file, $x, $y, $w = 0, $h = 0, &$data) { |
| 3983 | 4061 | if ( isset($this->imagelist[$file]) ) { |
@@ -4231,6 +4309,9 @@ discard block |
||
| 4231 | 4309 | |
| 4232 | 4310 | /** |
| 4233 | 4311 | * add a JPEG image into the document, from a file |
| 4312 | + * @param string $img |
|
| 4313 | + * @param double $x |
|
| 4314 | + * @param double $y |
|
| 4234 | 4315 | */ |
| 4235 | 4316 | function addJpegFromFile($img, $x, $y, $w = 0, $h = 0) { |
| 4236 | 4317 | // attempt to add a jpeg image straight from a file, using no GD commands |
@@ -4336,6 +4417,10 @@ discard block |
||
| 4336 | 4417 | /* Check if image already added to pdf image directory. |
| 4337 | 4418 | * If yes, need not to create again (pass empty data) |
| 4338 | 4419 | */ |
| 4420 | + |
|
| 4421 | + /** |
|
| 4422 | + * @param string $imgname |
|
| 4423 | + */ |
|
| 4339 | 4424 | function image_iscached($imgname) { |
| 4340 | 4425 | return isset($this->imagelist[$imgname]); |
| 4341 | 4426 | } |
@@ -4345,6 +4430,7 @@ discard block |
||
| 4345 | 4430 | * common code used by the two JPEG adding functions |
| 4346 | 4431 | * |
| 4347 | 4432 | * @access private |
| 4433 | + * @param null|string $data |
|
| 4348 | 4434 | */ |
| 4349 | 4435 | function addJpegImage_common(&$data, $x, $y, $w = 0, $h = 0, $imageWidth, $imageHeight, $channels = 3, $imgname) { |
| 4350 | 4436 | if ( isset($this->imagelist[$imgname]) ) { |
@@ -4377,6 +4463,7 @@ discard block |
||
| 4377 | 4463 | |
| 4378 | 4464 | /** |
| 4379 | 4465 | * specify where the document should open when it first starts |
| 4466 | + * @param string $style |
|
| 4380 | 4467 | */ |
| 4381 | 4468 | function openHere($style, $a = 0, $b = 0, $c = 0) { |
| 4382 | 4469 | // this function will open the document at a specified page, in a specified style |
@@ -4402,6 +4489,8 @@ discard block |
||
| 4402 | 4489 | |
| 4403 | 4490 | /** |
| 4404 | 4491 | * create a labelled destination within the document |
| 4492 | + * @param string $label |
|
| 4493 | + * @param string $style |
|
| 4405 | 4494 | */ |
| 4406 | 4495 | function addDestination($label, $style, $a = 0, $b = 0, $c = 0) { |
| 4407 | 4496 | // associates the given label with the destination, it is done this way so that a destination can be specified after |
@@ -4420,6 +4509,7 @@ discard block |
||
| 4420 | 4509 | * define font families, this is used to initialize the font families for the default fonts |
| 4421 | 4510 | * and for the user to add new ones for their fonts. The default bahavious can be overridden should |
| 4422 | 4511 | * that be desired. |
| 4512 | + * @param string $family |
|
| 4423 | 4513 | */ |
| 4424 | 4514 | function setFontFamily($family, $options = '') { |
| 4425 | 4515 | if (!is_array($options)) { |
@@ -891,6 +891,7 @@ discard block |
||
| 891 | 891 | /** |
| 892 | 892 | * Creates recipient headers. |
| 893 | 893 | * @access public |
| 894 | + * @param string $type |
|
| 894 | 895 | * @return string |
| 895 | 896 | */ |
| 896 | 897 | public function AddrAppend($type, $addr) { |
@@ -1258,6 +1259,9 @@ discard block |
||
| 1258 | 1259 | /** |
| 1259 | 1260 | * Returns the start of a message boundary. |
| 1260 | 1261 | * @access private |
| 1262 | + * @param string $charSet |
|
| 1263 | + * @param string $contentType |
|
| 1264 | + * @param string $encoding |
|
| 1261 | 1265 | */ |
| 1262 | 1266 | private function GetBoundary($boundary, $charSet, $contentType, $encoding) { |
| 1263 | 1267 | $result = ''; |
@@ -1311,6 +1315,7 @@ discard block |
||
| 1311 | 1315 | /** |
| 1312 | 1316 | * Returns a formatted header line. |
| 1313 | 1317 | * @access public |
| 1318 | + * @param string $name |
|
| 1314 | 1319 | * @return string |
| 1315 | 1320 | */ |
| 1316 | 1321 | public function HeaderLine($name, $value) { |
@@ -1320,6 +1325,7 @@ discard block |
||
| 1320 | 1325 | /** |
| 1321 | 1326 | * Returns a formatted mail line. |
| 1322 | 1327 | * @access public |
| 1328 | + * @param string $value |
|
| 1323 | 1329 | * @return string |
| 1324 | 1330 | */ |
| 1325 | 1331 | public function TextLine($value) { |
@@ -1521,6 +1527,7 @@ discard block |
||
| 1521 | 1527 | /** |
| 1522 | 1528 | * Encode a header string to best (shortest) of Q, B, quoted or none. |
| 1523 | 1529 | * @access public |
| 1530 | + * @param string $str |
|
| 1524 | 1531 | * @return string |
| 1525 | 1532 | */ |
| 1526 | 1533 | public function EncodeHeader($str, $position = 'text') { |
@@ -1647,7 +1654,6 @@ discard block |
||
| 1647 | 1654 | * Encode string to quoted-printable. |
| 1648 | 1655 | * Only uses standard PHP, slow, but will always work |
| 1649 | 1656 | * @access public |
| 1650 | - * @param string $string the text to encode |
|
| 1651 | 1657 | * @param integer $line_max Number of chars allowed on a line before wrapping |
| 1652 | 1658 | * @return string |
| 1653 | 1659 | */ |
@@ -1917,6 +1923,7 @@ discard block |
||
| 1917 | 1923 | /** |
| 1918 | 1924 | * Adds the error message to the error container. |
| 1919 | 1925 | * @access protected |
| 1926 | + * @param string $msg |
|
| 1920 | 1927 | * @return void |
| 1921 | 1928 | */ |
| 1922 | 1929 | protected function SetError($msg) { |
@@ -1966,6 +1973,7 @@ discard block |
||
| 1966 | 1973 | /** |
| 1967 | 1974 | * Returns a message in the appropriate language. |
| 1968 | 1975 | * @access private |
| 1976 | + * @param string $key |
|
| 1969 | 1977 | * @return string |
| 1970 | 1978 | */ |
| 1971 | 1979 | private function Lang($key) { |
@@ -1992,6 +2000,7 @@ discard block |
||
| 1992 | 2000 | /** |
| 1993 | 2001 | * Changes every end of line from CR or LF to CRLF. |
| 1994 | 2002 | * @access private |
| 2003 | + * @param string $str |
|
| 1995 | 2004 | * @return string |
| 1996 | 2005 | */ |
| 1997 | 2006 | private function FixEOL($str) { |
@@ -2203,8 +2212,6 @@ discard block |
||
| 2203 | 2212 | * Set the private key file and password to sign the message. |
| 2204 | 2213 | * |
| 2205 | 2214 | * @access public |
| 2206 | - * @param string $key_filename Parameter File Name |
|
| 2207 | - * @param string $key_pass Password for private key |
|
| 2208 | 2215 | */ |
| 2209 | 2216 | public function DKIM_QP($txt) { |
| 2210 | 2217 | $tmp=""; |
@@ -2318,6 +2325,11 @@ discard block |
||
| 2318 | 2325 | return "X-PHPMAILER-DKIM: phpmailer.worxware.com\r\n".$dkimhdrs.$signed."\r\n"; |
| 2319 | 2326 | } |
| 2320 | 2327 | |
| 2328 | + /** |
|
| 2329 | + * @param integer $isSent |
|
| 2330 | + * @param string $subject |
|
| 2331 | + * @param string $body |
|
| 2332 | + */ |
|
| 2321 | 2333 | protected function doCallback($isSent,$to,$cc,$bcc,$subject,$body) { |
| 2322 | 2334 | if (!empty($this->action_function) && function_exists($this->action_function)) { |
| 2323 | 2335 | $params = array($isSent,$to,$cc,$bcc,$subject,$body); |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | * @param string $host |
| 193 | 193 | * @param integer $port |
| 194 | 194 | * @param integer $tval |
| 195 | - * @return boolean |
|
| 195 | + * @return boolean|null |
|
| 196 | 196 | */ |
| 197 | 197 | public function Connect ($host, $port = false, $tval = 30) { |
| 198 | 198 | // Are we already connected? |
@@ -321,6 +321,7 @@ discard block |
||
| 321 | 321 | * SMTP CODE FAILURE: 451,554 |
| 322 | 322 | * SMTP CODE ERROR : 500,501,503,421 |
| 323 | 323 | * @access public |
| 324 | + * @param string $msg_data |
|
| 324 | 325 | * @return bool |
| 325 | 326 | */ |
| 326 | 327 | public function Data($msg_data) {
|
@@ -488,6 +489,8 @@ discard block |
||
| 488 | 489 | /** |
| 489 | 490 | * Sends a HELO/EHLO command. |
| 490 | 491 | * @access private |
| 492 | + * @param string $hello |
|
| 493 | + * @param string $host |
|
| 491 | 494 | * @return bool |
| 492 | 495 | */ |
| 493 | 496 | private function SendHello($hello, $host) {
|
@@ -528,6 +531,7 @@ discard block |
||
| 528 | 531 | * SMTP CODE SUCCESS: 552,451,452 |
| 529 | 532 | * SMTP CODE SUCCESS: 500,501,421 |
| 530 | 533 | * @access public |
| 534 | + * @param string $from |
|
| 531 | 535 | * @return bool |
| 532 | 536 | */ |
| 533 | 537 | public function Mail($from) {
|
@@ -742,6 +742,7 @@ discard block |
||
| 742 | 742 | * CRYPT_DES_MODE_ECB or CRYPT_DES_MODE_CBC. If not explictly set, CRYPT_DES_MODE_CBC will be used. |
| 743 | 743 | * |
| 744 | 744 | * @param optional Integer $mode |
| 745 | + * @param integer $mode |
|
| 745 | 746 | * @return Crypt_DES |
| 746 | 747 | * @access public |
| 747 | 748 | */ |
@@ -1445,6 +1446,7 @@ discard block |
||
| 1445 | 1446 | * |
| 1446 | 1447 | * @see Crypt_DES::_unpad() |
| 1447 | 1448 | * @access private |
| 1449 | + * @param string $text |
|
| 1448 | 1450 | */ |
| 1449 | 1451 | function _pad($text) |
| 1450 | 1452 | { |