@@ -30,6 +30,7 @@ discard block |
||
30 | 30 | * Constructor |
31 | 31 | * |
32 | 32 | * @param &HTML2PDF_myPdf reference to the PDF $object |
33 | + * @param HTML2PDF_myPdf $pdf |
|
33 | 34 | * @access public |
34 | 35 | */ |
35 | 36 | public function __construct(&$pdf) |
@@ -75,6 +76,7 @@ discard block |
||
75 | 76 | * define the Default Font to use, if the font does not exist, or if no font asked |
76 | 77 | * |
77 | 78 | * @param string default font-family. If null : Arial for no font asked, and error fot ont does not exist |
79 | + * @param string $default |
|
78 | 80 | * @return string old default font-family |
79 | 81 | * @access public |
80 | 82 | */ |
@@ -473,6 +475,7 @@ discard block |
||
473 | 475 | * @access public |
474 | 476 | * @param string tag name |
475 | 477 | * @param array styles |
478 | + * @param string $tagName |
|
476 | 479 | */ |
477 | 480 | public function getSvgStyle($tagName, &$param) |
478 | 481 | { |
@@ -1661,7 +1664,7 @@ discard block |
||
1661 | 1664 | * read a css content |
1662 | 1665 | * |
1663 | 1666 | * @access protected |
1664 | - * @param &string $code |
|
1667 | + * @param string $code |
|
1665 | 1668 | */ |
1666 | 1669 | protected function _analyseStyle(&$code) |
1667 | 1670 | { |
@@ -1725,6 +1728,7 @@ discard block |
||
1725 | 1728 | * |
1726 | 1729 | * @access public |
1727 | 1730 | * @param string &$html |
1731 | + * @param string $html |
|
1728 | 1732 | */ |
1729 | 1733 | public function readStyle(&$html) |
1730 | 1734 | { |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | * change the encoding |
39 | 39 | * |
40 | 40 | * @param string encoding |
41 | + * @param string $encoding |
|
41 | 42 | * @access public |
42 | 43 | */ |
43 | 44 | public function setEncoding($encoding) |
@@ -440,6 +441,7 @@ discard block |
||
440 | 441 | * get a full level of HTML, between an opening and closing corresponding |
441 | 442 | * |
442 | 443 | * @param integer key |
444 | + * @param integer $k |
|
443 | 445 | * @return array actions |
444 | 446 | */ |
445 | 447 | public function getLevel($k) |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | /** |
326 | 326 | * Encode a string to be used for CODE 39 Extended mode. |
327 | 327 | * @param string $code code to represent. |
328 | - * @return encoded string. |
|
328 | + * @return false|string string. |
|
329 | 329 | * @access protected |
330 | 330 | */ |
331 | 331 | protected function encode_code39_ext($code) { |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | /** |
377 | 377 | * Calculate CODE 39 checksum (modulo 43). |
378 | 378 | * @param string $code code to represent. |
379 | - * @return char checksum. |
|
379 | + * @return string checksum. |
|
380 | 380 | * @access protected |
381 | 381 | */ |
382 | 382 | protected function checksum_code39($code) { |
@@ -399,7 +399,6 @@ discard block |
||
399 | 399 | * CODE 93 - USS-93 |
400 | 400 | * Compact code similar to Code 39 |
401 | 401 | * @param string $code code to represent. |
402 | - * @param boolean $checksum if true add a checksum to the code |
|
403 | 402 | * @return array barcode representation. |
404 | 403 | * @access protected |
405 | 404 | */ |
@@ -988,7 +987,7 @@ discard block |
||
988 | 987 | * UPC-A: Universal product code seen on almost all retail products in the USA and Canada |
989 | 988 | * UPC-E: Short version of UPC symbol |
990 | 989 | * @param string $code code to represent. |
991 | - * @param string $len barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A |
|
990 | + * @param integer $len barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A |
|
992 | 991 | * @return array barcode representation. |
993 | 992 | * @access protected |
994 | 993 | */ |
@@ -1181,7 +1180,7 @@ discard block |
||
1181 | 1180 | * 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers |
1182 | 1181 | * 5-Digit Ext.: Used to mark suggested retail price of books |
1183 | 1182 | * @param string $code code to represent. |
1184 | - * @param string $len barcode type: 2 = 2-Digit, 5 = 5-Digit |
|
1183 | + * @param integer $len barcode type: 2 = 2-Digit, 5 = 5-Digit |
|
1185 | 1184 | * @return array barcode representation. |
1186 | 1185 | * @access protected |
1187 | 1186 | */ |
@@ -234,6 +234,8 @@ discard block |
||
234 | 234 | |
235 | 235 | /** |
236 | 236 | * Read UFM file |
237 | + * @param string $file |
|
238 | + * @param string $cidtogidmap |
|
237 | 239 | */ |
238 | 240 | function ReadUFM($file, &$cidtogidmap) { |
239 | 241 | //Prepare empty CIDToGIDMap |
@@ -309,6 +311,7 @@ discard block |
||
309 | 311 | |
310 | 312 | /** |
311 | 313 | * Read AFM file |
314 | + * @param string $file |
|
312 | 315 | */ |
313 | 316 | function ReadAFM($file,&$map) { |
314 | 317 | //Read a font metric file |
@@ -526,6 +529,10 @@ discard block |
||
526 | 529 | return rtrim($s); |
527 | 530 | } |
528 | 531 | |
532 | +/** |
|
533 | + * @param string $file |
|
534 | + * @param string $s |
|
535 | + */ |
|
529 | 536 | function SaveToFile($file, $s, $mode='t') { |
530 | 537 | $f = fopen($file, 'w'.$mode); |
531 | 538 | if(!$f) { |
@@ -545,6 +552,9 @@ discard block |
||
545 | 552 | return $a['N']; |
546 | 553 | } |
547 | 554 | |
555 | +/** |
|
556 | + * @param string $file |
|
557 | + */ |
|
548 | 558 | function CheckTTF($file) { |
549 | 559 | //Check if font license allows embedding |
550 | 560 | $f = fopen($file, 'rb'); |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | * Convert a string to an array (needed for PHP4 compatibility) |
269 | 269 | * @param string $string The input string. |
270 | 270 | * @param int $split_length Maximum length of the chunk. |
271 | - * @return If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string , the entire string is returned as the first (and only) array element. |
|
271 | + * @return string[] the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string , the entire string is returned as the first (and only) array element. |
|
272 | 272 | */ |
273 | 273 | function str_split($string, $split_length=1) { |
274 | 274 | if ((strlen($string) > $split_length) OR (!$split_length)) { |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | /** |
804 | 804 | * Get frame value at specified position |
805 | 805 | * @param array $at x,y position |
806 | - * @return value at specified position |
|
806 | + * @return integer at specified position |
|
807 | 807 | */ |
808 | 808 | protected function getFrameAt($at) { |
809 | 809 | return ord($this->frame[$at['y']][$at['x']]); |
@@ -946,8 +946,8 @@ discard block |
||
946 | 946 | /** |
947 | 947 | * Write Format Information on frame and returns the number of black bits |
948 | 948 | * @param int $width frame width |
949 | - * @param array $frame frame |
|
950 | - * @param array $mask masking mode |
|
949 | + * @param integer $frame frame |
|
950 | + * @param integer $mask masking mode |
|
951 | 951 | * @param int $level error correction level |
952 | 952 | * @return int blacks |
953 | 953 | */ |
@@ -1071,7 +1071,7 @@ discard block |
||
1071 | 1071 | * Return bitmask |
1072 | 1072 | * @param int $maskNo mask number |
1073 | 1073 | * @param int $width width |
1074 | - * @param array $frame frame |
|
1074 | + * @param integer $frame frame |
|
1075 | 1075 | * @return array bitmask |
1076 | 1076 | */ |
1077 | 1077 | protected function generateMaskNo($maskNo, $width, $frame) { |
@@ -1703,7 +1703,7 @@ discard block |
||
1703 | 1703 | * @param array items input items |
1704 | 1704 | * @param int $mode encoding mode. |
1705 | 1705 | * @param int $size size of data (byte). |
1706 | - * @param array $data array of input data. |
|
1706 | + * @param string[] $data array of input data. |
|
1707 | 1707 | * @return items |
1708 | 1708 | * |
1709 | 1709 | */ |
@@ -1792,7 +1792,7 @@ discard block |
||
1792 | 1792 | /** |
1793 | 1793 | * Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19). |
1794 | 1794 | * @param int $c character value |
1795 | - * @return value |
|
1795 | + * @return integer |
|
1796 | 1796 | */ |
1797 | 1797 | protected function lookAnTable($c) { |
1798 | 1798 | return (($c > 127)?-1:$this->anTable[$c]); |
@@ -2094,7 +2094,7 @@ discard block |
||
2094 | 2094 | |
2095 | 2095 | /** |
2096 | 2096 | * mergeBitStream |
2097 | - * @param array $bstream |
|
2097 | + * @param integer $items |
|
2098 | 2098 | * @return array bitstream |
2099 | 2099 | */ |
2100 | 2100 | protected function mergeBitStream($items) { |
@@ -2231,7 +2231,7 @@ discard block |
||
2231 | 2231 | |
2232 | 2232 | /** |
2233 | 2233 | * Convert bitstream to bytes |
2234 | - * @param array $bitstream original bitstream |
|
2234 | + * @param array $bstream original bitstream |
|
2235 | 2235 | * @return array of bytes |
2236 | 2236 | */ |
2237 | 2237 | protected function bitstreamToByte($bstream) { |
@@ -2384,7 +2384,7 @@ discard block |
||
2384 | 2384 | * Return an array of ECC specification. |
2385 | 2385 | * @param int $version version |
2386 | 2386 | * @param int $level error correction level |
2387 | - * @param array $spec an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, # of type2 blocks, # of data code} |
|
2387 | + * @param integer[] $spec an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, # of type2 blocks, # of data code} |
|
2388 | 2388 | * @return array spec |
2389 | 2389 | */ |
2390 | 2390 | protected function getEccSpec($version, $level, $spec) { |
@@ -2414,7 +2414,6 @@ discard block |
||
2414 | 2414 | /** |
2415 | 2415 | * Put an alignment marker. |
2416 | 2416 | * @param array $frame frame |
2417 | - * @param int $width width |
|
2418 | 2417 | * @param int $ox X center coordinate of the pattern |
2419 | 2418 | * @param int $oy Y center coordinate of the pattern |
2420 | 2419 | * @return array frame |
@@ -2438,7 +2437,7 @@ discard block |
||
2438 | 2437 | /** |
2439 | 2438 | * Put an alignment pattern. |
2440 | 2439 | * @param int $version version |
2441 | - * @param array $fram frame |
|
2440 | + * @param array $frame frame |
|
2442 | 2441 | * @param int $width width |
2443 | 2442 | * @return array frame |
2444 | 2443 | */ |
@@ -2508,7 +2507,6 @@ discard block |
||
2508 | 2507 | /** |
2509 | 2508 | * Put a finder pattern. |
2510 | 2509 | * @param array $frame frame |
2511 | - * @param int $width width |
|
2512 | 2510 | * @param int $ox X center coordinate of the pattern |
2513 | 2511 | * @param int $oy Y center coordinate of the pattern |
2514 | 2512 | * @return array frame |
@@ -2678,7 +2676,7 @@ discard block |
||
2678 | 2676 | /** |
2679 | 2677 | * Return data length |
2680 | 2678 | * @param array $spec |
2681 | - * @return int value |
|
2679 | + * @return double value |
|
2682 | 2680 | */ |
2683 | 2681 | protected function rsDataLength($spec) { |
2684 | 2682 | return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); |
@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @access public |
119 | 119 | * @param string $orientation page orientation, same as TCPDF |
120 | - * @param mixed $format The format used for pages, same as TCPDF |
|
120 | + * @param string $format The format used for pages, same as TCPDF |
|
121 | 121 | * @param $tring $langue Langue : fr, en, it... |
122 | 122 | * @param boolean $unicode TRUE means that the input text is unicode (default = true) |
123 | 123 | * @param String $encoding charset encoding; default is UTF-8 |
124 | - * @param array $marges Default marges (left, top, right, bottom) |
|
124 | + * @param integer[] $marges Default marges (left, top, right, bottom) |
|
125 | 125 | * @return HTML2PDF $this |
126 | 126 | */ |
127 | 127 | public function __construct($orientation = 'P', $format = 'A4', $langue='en', $unicode=true, $encoding='UTF-8', $marges = array(5, 5, 5, 8)) |
@@ -282,7 +282,6 @@ discard block |
||
282 | 282 | * @access public |
283 | 283 | * @param string $family Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font. |
284 | 284 | * @param string $style Font style. Possible values are (case insensitive):<ul><li>empty string: regular (default)</li><li>B: bold</li><li>I: italic</li><li>BI or IB: bold italic</li></ul> |
285 | - * @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces. |
|
286 | 285 | * @return HTML2PDF $this |
287 | 286 | * @see TCPDF::addFont |
288 | 287 | */ |
@@ -413,6 +412,7 @@ discard block |
||
413 | 412 | * |
414 | 413 | * @access public |
415 | 414 | * @param string HTML of a real page |
415 | + * @param string $html |
|
416 | 416 | * @return string HTML adapted to HTML2PDF |
417 | 417 | */ |
418 | 418 | public function getHtmlFromPage($html) |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | * display the content in HTML moden for debug |
475 | 475 | * |
476 | 476 | * @access protected |
477 | - * @param string $contenu |
|
477 | + * @param string $content |
|
478 | 478 | */ |
479 | 479 | protected function _vueHTML($content) |
480 | 480 | { |
@@ -1857,7 +1857,7 @@ discard block |
||
1857 | 1857 | * draw a curve (for border radius) |
1858 | 1858 | * |
1859 | 1859 | * @access protected |
1860 | - * @param array $pt |
|
1860 | + * @param double[] $pt |
|
1861 | 1861 | * @param array $color |
1862 | 1862 | */ |
1863 | 1863 | protected function _drawCurve($pt, $color) |
@@ -3238,7 +3238,7 @@ discard block |
||
3238 | 3238 | * this is not a real TAG, it is just to write texts |
3239 | 3239 | * |
3240 | 3240 | * @param array $param |
3241 | - * @return boolean |
|
3241 | + * @return null|boolean |
|
3242 | 3242 | */ |
3243 | 3243 | protected function _tag_open_WRITE($param) |
3244 | 3244 | { |
@@ -4202,7 +4202,6 @@ discard block |
||
4202 | 4202 | * mode : OPEN |
4203 | 4203 | * |
4204 | 4204 | * @param array $param |
4205 | - * @param string $other |
|
4206 | 4205 | * @return boolean |
4207 | 4206 | */ |
4208 | 4207 | protected function _tag_open_CODE($param) |
@@ -5080,7 +5079,7 @@ discard block |
||
5080 | 5079 | * mode : OPEN |
5081 | 5080 | * |
5082 | 5081 | * @param array $param |
5083 | - * @return boolean |
|
5082 | + * @return boolean|null |
|
5084 | 5083 | */ |
5085 | 5084 | protected function _tag_open_COL($param) |
5086 | 5085 | { |
@@ -5697,7 +5696,6 @@ discard block |
||
5697 | 5696 | * tag : SELECT |
5698 | 5697 | * mode : CLOSE |
5699 | 5698 | * |
5700 | - * @param array $param |
|
5701 | 5699 | * @return boolean |
5702 | 5700 | */ |
5703 | 5701 | protected function _tag_close_SELECT() |
@@ -5801,7 +5799,6 @@ discard block |
||
5801 | 5799 | * tag : TEXTAREA |
5802 | 5800 | * mode : CLOSE |
5803 | 5801 | * |
5804 | - * @param array $param |
|
5805 | 5802 | * @return boolean |
5806 | 5803 | */ |
5807 | 5804 | protected function _tag_close_TEXTAREA() |
@@ -6111,7 +6108,7 @@ discard block |
||
6111 | 6108 | * mode : OPEN |
6112 | 6109 | * |
6113 | 6110 | * @param array $param |
6114 | - * @return boolean |
|
6111 | + * @return boolean|null |
|
6115 | 6112 | */ |
6116 | 6113 | protected function _tag_open_LINE($param) |
6117 | 6114 | { |
@@ -6138,7 +6135,7 @@ discard block |
||
6138 | 6135 | * mode : OPEN |
6139 | 6136 | * |
6140 | 6137 | * @param array $param |
6141 | - * @return boolean |
|
6138 | + * @return boolean|null |
|
6142 | 6139 | */ |
6143 | 6140 | protected function _tag_open_RECT($param) |
6144 | 6141 | { |
@@ -6165,7 +6162,7 @@ discard block |
||
6165 | 6162 | * mode : OPEN |
6166 | 6163 | * |
6167 | 6164 | * @param array $param |
6168 | - * @return boolean |
|
6165 | + * @return boolean|null |
|
6169 | 6166 | */ |
6170 | 6167 | protected function _tag_open_CIRCLE($param) |
6171 | 6168 | { |
@@ -6190,7 +6187,7 @@ discard block |
||
6190 | 6187 | * mode : OPEN |
6191 | 6188 | * |
6192 | 6189 | * @param array $param |
6193 | - * @return boolean |
|
6190 | + * @return boolean|null |
|
6194 | 6191 | */ |
6195 | 6192 | protected function _tag_open_ELLIPSE($param) |
6196 | 6193 | { |
@@ -6217,7 +6214,7 @@ discard block |
||
6217 | 6214 | * mode : OPEN |
6218 | 6215 | * |
6219 | 6216 | * @param array $param |
6220 | - * @return boolean |
|
6217 | + * @return boolean|null |
|
6221 | 6218 | */ |
6222 | 6219 | protected function _tag_open_POLYLINE($param) |
6223 | 6220 | { |
@@ -6263,7 +6260,7 @@ discard block |
||
6263 | 6260 | * mode : OPEN |
6264 | 6261 | * |
6265 | 6262 | * @param array $param |
6266 | - * @return boolean |
|
6263 | + * @return boolean|null |
|
6267 | 6264 | */ |
6268 | 6265 | protected function _tag_open_POLYGON($param) |
6269 | 6266 | { |
@@ -6310,7 +6307,7 @@ discard block |
||
6310 | 6307 | * mode : OPEN |
6311 | 6308 | * |
6312 | 6309 | * @param array $param |
6313 | - * @return boolean |
|
6310 | + * @return boolean|null |
|
6314 | 6311 | */ |
6315 | 6312 | protected function _tag_open_PATH($param) |
6316 | 6313 | { |
@@ -6439,7 +6436,7 @@ discard block |
||
6439 | 6436 | * mode : OPEN |
6440 | 6437 | * |
6441 | 6438 | * @param array $param |
6442 | - * @return boolean |
|
6439 | + * @return boolean|null |
|
6443 | 6440 | */ |
6444 | 6441 | protected function _tag_open_G($param) |
6445 | 6442 | { |
@@ -6456,7 +6453,7 @@ discard block |
||
6456 | 6453 | * mode : CLOSE |
6457 | 6454 | * |
6458 | 6455 | * @param array $param |
6459 | - * @return boolean |
|
6456 | + * @return boolean|null |
|
6460 | 6457 | */ |
6461 | 6458 | protected function _tag_close_G($param) |
6462 | 6459 | { |
@@ -56,6 +56,11 @@ |
||
56 | 56 | function quote($inp) { |
57 | 57 | return "'" . $this->db->escape_str($inp) . "'"; |
58 | 58 | } |
59 | + |
|
60 | + /** |
|
61 | + * @param string $q |
|
62 | + * @param string $colname |
|
63 | + */ |
|
59 | 64 | function db_get_item($q, $colname) { |
60 | 65 | $item_arr = array(); |
61 | 66 | $query = $this->db->query($q); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * -------Here we write code for model auth_model functions verify_login------ |
31 | 31 | * Purpose: Validate Login Name and Password. |
32 | 32 | * @param $username,$password. |
33 | - * @return If login user name and password is valid then return true else return false. |
|
33 | + * @return integer login user name and password is valid then return true else return false. |
|
34 | 34 | */ |
35 | 35 | function verify_login($username, $password) { |
36 | 36 | $q = "SELECT COUNT(*) as cnt FROM accounts WHERE (number = '".$this->db->escape_str($username)."'"; |
@@ -1410,6 +1410,10 @@ |
||
1410 | 1410 | } |
1411 | 1411 | $this->load->view('view_accounts_process_payment', $data); |
1412 | 1412 | } |
1413 | + |
|
1414 | + /** |
|
1415 | + * @param string $select |
|
1416 | + */ |
|
1413 | 1417 | function get_invoice_date($select,$accountid){ |
1414 | 1418 | $query = $this->db_model->select($select, "invoices", '',"id","DESC","1","0"); |
1415 | 1419 | if($query->num_rows >0){ |