@@ -35,6 +35,9 @@ |
||
35 | 35 | |
36 | 36 | class FilterASCII85 { |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $msg |
|
40 | + */ |
|
38 | 41 | function error($msg) { |
39 | 42 | die($msg); |
40 | 43 | } |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | var $data = null; |
16 | 16 | var $dataLength = 0; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $msg |
|
20 | + */ |
|
18 | 21 | function error($msg) { |
19 | 22 | die($msg); |
20 | 23 | } |
@@ -23,7 +26,7 @@ discard block |
||
23 | 26 | * Method to decode GZIP compressed data. |
24 | 27 | * |
25 | 28 | * @param string data The compressed data. |
26 | - * @return uncompressed data |
|
29 | + * @return string data |
|
27 | 30 | */ |
28 | 31 | function decode($data) { |
29 | 32 |
@@ -35,6 +35,9 @@ |
||
35 | 35 | var $nextBits = 0; |
36 | 36 | var $andTable = array(511, 1023, 2047, 4095); |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $msg |
|
40 | + */ |
|
38 | 41 | function error($msg) { |
39 | 42 | die($msg); |
40 | 43 | } |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | *@access public |
235 | 235 | *@note for big boys only coz it may hurt |
236 | 236 | *@param string $mode a choice between 'safe','check','verbose','halt' or 'verbose_level' |
237 | - *@param string|int $value an integer for verbose_level |
|
237 | + *@param boolean $value an integer for verbose_level |
|
238 | 238 | **/ |
239 | 239 | function set_modes($mode,$value) { |
240 | 240 | //------------------------------- |
@@ -822,6 +822,10 @@ discard block |
||
822 | 822 | return $this->_bin2hex($str); |
823 | 823 | } |
824 | 824 | |
825 | + /** |
|
826 | + * @param string $value |
|
827 | + * @param boolean $append |
|
828 | + */ |
|
825 | 829 | function _set_field_value2($line,$value,$append) { |
826 | 830 | $CurLine=$this->pdf_entries[$line]; |
827 | 831 | $OldLen=strlen($CurLine); |
@@ -1120,7 +1124,6 @@ discard block |
||
1120 | 1124 | * Read the offset of the xref table directly from file content |
1121 | 1125 | * |
1122 | 1126 | * @note content has been previously been defined in $this->buffer |
1123 | - * @param int $object_id an object id, a integer value starting from 1 |
|
1124 | 1127 | * @return int the wished xrefstart offset value |
1125 | 1128 | */ |
1126 | 1129 | function read_xref_start_value() { |
@@ -1336,7 +1339,8 @@ discard block |
||
1336 | 1339 | * |
1337 | 1340 | * @access private |
1338 | 1341 | * @param int from the index to start apply the shift |
1339 | - * @param int shift the shift value to use |
|
1342 | + * @param int shift the shift value to use |
|
1343 | + * @param integer $from |
|
1340 | 1344 | */ |
1341 | 1345 | function _apply_offset_shift($from,$shift) { |
1342 | 1346 | //------------------------------------------ |
@@ -1357,7 +1361,8 @@ discard block |
||
1357 | 1361 | * |
1358 | 1362 | * @access public |
1359 | 1363 | * @param string $encoding the encoding to use for decoding the value, only 'hex' is supported |
1360 | - * @param string value a value to decode |
|
1364 | + * @param string value a value to decode |
|
1365 | + * @param string $value |
|
1361 | 1366 | * @return string the value decoded |
1362 | 1367 | */ |
1363 | 1368 | function decodeValue($encoding,$value) { |
@@ -1437,8 +1442,7 @@ discard block |
||
1437 | 1442 | * Detect if the stream has a textual content |
1438 | 1443 | * |
1439 | 1444 | * @access public |
1440 | - * @param string $stream the string content of the stream |
|
1441 | - * @return boolean |
|
1445 | + * @return integer |
|
1442 | 1446 | */ |
1443 | 1447 | function is_text_stream($stream_content) { |
1444 | 1448 | //-------------------------------------- |
@@ -1538,6 +1542,9 @@ discard block |
||
1538 | 1542 | return $value; |
1539 | 1543 | } |
1540 | 1544 | |
1545 | + /** |
|
1546 | + * @param string $name |
|
1547 | + */ |
|
1541 | 1548 | function extract_pdf_definition_value($name,$line,&$match) { |
1542 | 1549 | //----------------------------------------------------------- |
1543 | 1550 |
@@ -38,6 +38,10 @@ discard block |
||
38 | 38 | if (!function_exists('fix_path')) { |
39 | 39 | // fixes windows paths... |
40 | 40 | // (windows accepts forward slashes and backwards slashes, so why does PHP use backwards? |
41 | + |
|
42 | + /** |
|
43 | + * @param string $path |
|
44 | + */ |
|
41 | 45 | function fix_path($path) { |
42 | 46 | //------------------------- |
43 | 47 | return str_replace('\\','/',$path); |
@@ -55,6 +59,10 @@ discard block |
||
55 | 59 | // the main script dir: dirname($_SERVER['PHP_SELF']) |
56 | 60 | // the current script dir fix_path(dirname(__FILE__)) |
57 | 61 | //return the full url with ending / |
62 | + |
|
63 | + /** |
|
64 | + * @param string $local_dir |
|
65 | + */ |
|
58 | 66 | function getUrlfromDir($local_dir) { |
59 | 67 | //------------------------------- |
60 | 68 | $server_dir=getWebDir($local_dir); |
@@ -113,6 +121,9 @@ discard block |
||
113 | 121 | return $sUrl; |
114 | 122 | } |
115 | 123 | |
124 | + /** |
|
125 | + * @param string $relative_url |
|
126 | + */ |
|
116 | 127 | function resolve_url($relative_url) { |
117 | 128 | //----------------------------- |
118 | 129 | $url=parse_url($relative_url); |