@@ -1504,6 +1504,12 @@ discard block |
||
1504 | 1504 | |
1505 | 1505 | } |
1506 | 1506 | |
1507 | +/** |
|
1508 | + * @param string $ry |
|
1509 | + * @param string $angle |
|
1510 | + * @param string $largeArcFlag |
|
1511 | + * @param string $sweepFlag |
|
1512 | + */ |
|
1507 | 1513 | function Arcto($x1, $y1, $x2, $y2, $rx, $ry, $angle, $largeArcFlag, $sweepFlag) { |
1508 | 1514 | |
1509 | 1515 | // mPDF 5.0.040 |
@@ -1618,6 +1624,12 @@ discard block |
||
1618 | 1624 | } |
1619 | 1625 | |
1620 | 1626 | |
1627 | + /** |
|
1628 | + * @param double $ux |
|
1629 | + * @param double $uy |
|
1630 | + * @param double $vx |
|
1631 | + * @param double $vy |
|
1632 | + */ |
|
1621 | 1633 | function CalcVectorAngle($ux, $uy, $vx, $vy) { |
1622 | 1634 | $ta = atan2($uy, $ux); |
1623 | 1635 | $tb = atan2($vy, $vx); |
@@ -2513,6 +2525,9 @@ discard block |
||
2513 | 2525 | |
2514 | 2526 | |
2515 | 2527 | // mPDF 5.0.040 |
2528 | +/** |
|
2529 | + * @param integer[] $start |
|
2530 | + */ |
|
2516 | 2531 | function calc_bezier_bbox($start, $c) { |
2517 | 2532 | $P0 = array($start[0],$start[1]); |
2518 | 2533 | $P1 = array($c[0],$c[1]); |
@@ -2554,6 +2569,11 @@ discard block |
||
2554 | 2569 | } |
2555 | 2570 | |
2556 | 2571 | // mPDF 5.0.040 |
2572 | +/** |
|
2573 | + * @param double $cx |
|
2574 | + * @param double $cy |
|
2575 | + * @param double $cr |
|
2576 | + */ |
|
2557 | 2577 | function _testIntersectCircle($cx, $cy, $cr) { |
2558 | 2578 | // Tests whether a circle fully encloses a rectangle 0,0,1,1 |
2559 | 2579 | // to see if any further radial gradients need adding (SVG) |
@@ -2574,6 +2594,16 @@ discard block |
||
2574 | 2594 | } |
2575 | 2595 | |
2576 | 2596 | // mPDF 5.0.040 |
2597 | +/** |
|
2598 | + * @param double $x1 |
|
2599 | + * @param double $y1 |
|
2600 | + * @param double $x2 |
|
2601 | + * @param double $y2 |
|
2602 | + * @param integer $x3 |
|
2603 | + * @param integer $y3 |
|
2604 | + * @param integer $x4 |
|
2605 | + * @param integer $y4 |
|
2606 | + */ |
|
2577 | 2607 | function _testIntersect($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4) { |
2578 | 2608 | // Tests whether line (x1, y1) and (x2, y2) [a gradient axis (perpendicular)] |
2579 | 2609 | // intersects with a specific line segment (x3, y3) and (x4, y4) |
@@ -160,6 +160,9 @@ discard block |
||
160 | 160 | } |
161 | 161 | } |
162 | 162 | |
163 | + /** |
|
164 | + * @param integer[] $x |
|
165 | + */ |
|
163 | 166 | function sub32($x, $y) { |
164 | 167 | $xlo = $x[1]; |
165 | 168 | $xhi = $x[0]; |
@@ -198,11 +201,17 @@ discard block |
||
198 | 201 | fseek($this->fh,$this->_pos); |
199 | 202 | } |
200 | 203 | |
204 | + /** |
|
205 | + * @param integer $delta |
|
206 | + */ |
|
201 | 207 | function skip($delta) { |
202 | 208 | $this->_pos = $this->_pos + $delta; |
203 | 209 | fseek($this->fh,$delta,SEEK_CUR); |
204 | 210 | } |
205 | 211 | |
212 | + /** |
|
213 | + * @param string $tag |
|
214 | + */ |
|
206 | 215 | function seek_table($tag, $offset_in_table = 0) { |
207 | 216 | $tpos = $this->get_table_pos($tag); |
208 | 217 | $this->_pos = $tpos[0] + $offset_in_table; |
@@ -225,6 +234,9 @@ discard block |
||
225 | 234 | return $a; |
226 | 235 | } |
227 | 236 | |
237 | + /** |
|
238 | + * @param string $s |
|
239 | + */ |
|
228 | 240 | function unpack_short($s) { |
229 | 241 | $a = (ord($s[0])<<8) + ord($s[1]); |
230 | 242 | if ($a & (1 << 15) ) { |
@@ -268,15 +280,27 @@ discard block |
||
268 | 280 | return pack("n",$val); |
269 | 281 | } |
270 | 282 | |
283 | + /** |
|
284 | + * @param string $value |
|
285 | + */ |
|
271 | 286 | function splice($stream, $offset, $value) { |
272 | 287 | return substr($stream,0,$offset) . $value . substr($stream,$offset+strlen($value)); |
273 | 288 | } |
274 | 289 | |
290 | + /** |
|
291 | + * @param string $stream |
|
292 | + * @param integer $offset |
|
293 | + */ |
|
275 | 294 | function _set_ushort($stream, $offset, $value) { |
276 | 295 | $up = pack("n", $value); |
277 | 296 | return $this->splice($stream, $offset, $up); |
278 | 297 | } |
279 | 298 | |
299 | + /** |
|
300 | + * @param string $stream |
|
301 | + * @param integer $offset |
|
302 | + * @param integer $val |
|
303 | + */ |
|
280 | 304 | function _set_short($stream, $offset, $val) { |
281 | 305 | if ($val<0) { |
282 | 306 | $val = abs($val); |
@@ -293,6 +317,9 @@ discard block |
||
293 | 317 | return (fread($this->fh,$length)); |
294 | 318 | } |
295 | 319 | |
320 | + /** |
|
321 | + * @param string $tag |
|
322 | + */ |
|
296 | 323 | function get_table($tag) { |
297 | 324 | list($pos, $length) = $this->get_table_pos($tag); |
298 | 325 | if ($length == 0) { return ''; } |
@@ -300,6 +327,10 @@ discard block |
||
300 | 327 | return (fread($this->fh,$length)); |
301 | 328 | } |
302 | 329 | |
330 | + /** |
|
331 | + * @param string $tag |
|
332 | + * @param string $data |
|
333 | + */ |
|
303 | 334 | function add($tag, $data) { |
304 | 335 | if ($tag == 'head') { |
305 | 336 | $data = $this->splice($data, 8, "\0\0\0\0"); |
@@ -1686,6 +1717,13 @@ discard block |
||
1686 | 1717 | |
1687 | 1718 | ////////////////////////////////////////////////////////////////////////////////// |
1688 | 1719 | // Recursively get composite glyph data |
1720 | + |
|
1721 | + /** |
|
1722 | + * @param integer $maxdepth |
|
1723 | + * @param integer $depth |
|
1724 | + * @param integer $points |
|
1725 | + * @param integer $contours |
|
1726 | + */ |
|
1689 | 1727 | function getGlyphData($originalGlyphIdx, &$maxdepth, &$depth, &$points, &$contours) { |
1690 | 1728 | $depth++; |
1691 | 1729 | $maxdepth = max($maxdepth, $depth); |
@@ -1741,6 +1779,11 @@ discard block |
||
1741 | 1779 | |
1742 | 1780 | ////////////////////////////////////////////////////////////////////////////////// |
1743 | 1781 | |
1782 | + /** |
|
1783 | + * @param integer $numberOfHMetrics |
|
1784 | + * @param integer $numGlyphs |
|
1785 | + * @param integer $scale |
|
1786 | + */ |
|
1744 | 1787 | function getHMTX($numberOfHMetrics, $numGlyphs, &$glyphToChar, $scale) { |
1745 | 1788 | $start = $this->seek_table("hmtx"); |
1746 | 1789 | $aw = 0; |
@@ -1808,6 +1851,9 @@ discard block |
||
1808 | 1851 | $this->charWidths[1] = chr($nCharWidths & 0xFF); |
1809 | 1852 | } |
1810 | 1853 | |
1854 | + /** |
|
1855 | + * @param integer $numberOfHMetrics |
|
1856 | + */ |
|
1811 | 1857 | function getHMetric($numberOfHMetrics, $gid) { |
1812 | 1858 | $start = $this->seek_table("hmtx"); |
1813 | 1859 | if ($gid < $numberOfHMetrics) { |
@@ -1823,6 +1869,10 @@ discard block |
||
1823 | 1869 | return $hm; |
1824 | 1870 | } |
1825 | 1871 | |
1872 | + /** |
|
1873 | + * @param integer $indexToLocFormat |
|
1874 | + * @param integer $numGlyphs |
|
1875 | + */ |
|
1826 | 1876 | function getLOCA($indexToLocFormat, $numGlyphs) { |
1827 | 1877 | $start = $this->seek_table('loca'); |
1828 | 1878 | $this->glyphPos = array(); |
@@ -1846,6 +1896,10 @@ discard block |
||
1846 | 1896 | |
1847 | 1897 | |
1848 | 1898 | // CMAP Format 4 |
1899 | + |
|
1900 | + /** |
|
1901 | + * @param integer $unicode_cmap_offset |
|
1902 | + */ |
|
1849 | 1903 | function getCMAP4($unicode_cmap_offset, &$glyphToChar, &$charToGlyph ) { |
1850 | 1904 | $this->maxUniChar = 0; |
1851 | 1905 | $this->seek($unicode_cmap_offset + 2); |
@@ -1954,6 +2008,10 @@ discard block |
||
1954 | 2008 | |
1955 | 2009 | |
1956 | 2010 | // Put the TTF file together |
2011 | + |
|
2012 | + /** |
|
2013 | + * @param string $stm |
|
2014 | + */ |
|
1957 | 2015 | function endTTFile(&$stm) { |
1958 | 2016 | $stm = ''; |
1959 | 2017 | $numTables = count($this->otables); |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | |
43 | +/** |
|
44 | + * @param string $str2 |
|
45 | + */ |
|
43 | 46 | function _strspn($str1, $str2, $start=null, $length=null) { |
44 | 47 | $numargs = func_num_args(); |
45 | 48 | if ($numargs == 2) { |
@@ -54,6 +57,10 @@ discard block |
||
54 | 57 | } |
55 | 58 | |
56 | 59 | |
60 | +/** |
|
61 | + * @param string $str2 |
|
62 | + * @param integer $start |
|
63 | + */ |
|
57 | 64 | function _strcspn($str1, $str2, $start=null, $length=null) { |
58 | 65 | $numargs = func_num_args(); |
59 | 66 | if ($numargs == 2) { |
@@ -30,6 +30,9 @@ |
||
30 | 30 | var $nextBits = 0; |
31 | 31 | var $andTable = array(511, 1023, 2047, 4095); |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $msg |
|
35 | + */ |
|
33 | 36 | function error($msg) { |
34 | 37 | die($msg); |
35 | 38 | } |
@@ -279,6 +279,9 @@ |
||
279 | 279 | return true; |
280 | 280 | } |
281 | 281 | |
282 | + /** |
|
283 | + * @param EmailTemplate $template |
|
284 | + */ |
|
282 | 285 | function parse_template(SugarBean $bean, &$template, $object_override = array()){ |
283 | 286 | global $sugar_config; |
284 | 287 |
@@ -61,6 +61,9 @@ |
||
61 | 61 | return false; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param AOW_WorkFlow $parent |
|
66 | + */ |
|
64 | 67 | function save_lines($post_data, $parent, $key = ''){ |
65 | 68 | |
66 | 69 | require_once('modules/AOW_WorkFlow/aow_utils.php'); |
@@ -608,6 +608,9 @@ discard block |
||
608 | 608 | |
609 | 609 | } |
610 | 610 | |
611 | +/** |
|
612 | + * @param string $list_id |
|
613 | + */ |
|
611 | 614 | function getDropdownList($list_id, $selected_value) { |
612 | 615 | global $app_list_strings; |
613 | 616 | $option = ''; |
@@ -634,6 +637,9 @@ discard block |
||
634 | 637 | return array_shift($countsKeys); |
635 | 638 | } |
636 | 639 | |
640 | +/** |
|
641 | + * @param string $id |
|
642 | + */ |
|
637 | 643 | function getRoundRobinUser($users, $id) { |
638 | 644 | |
639 | 645 | $file = create_cache_directory('modules/AOW_WorkFlow/Users/') . $id . 'lastUser.cache.php'; |
@@ -659,6 +665,9 @@ discard block |
||
659 | 665 | return $users[0]; |
660 | 666 | } |
661 | 667 | |
668 | +/** |
|
669 | + * @param string $id |
|
670 | + */ |
|
662 | 671 | function setLastUser($user_id, $id) { |
663 | 672 | |
664 | 673 | $_SESSION['lastuser'][$id] = $user_id; |
@@ -188,6 +188,9 @@ |
||
188 | 188 | return null; |
189 | 189 | } |
190 | 190 | |
191 | + /** |
|
192 | + * @param string $type |
|
193 | + */ |
|
191 | 194 | function build_flow_query_join($name, SugarBean $module, $type, $query = array()){ |
192 | 195 | |
193 | 196 | if(!isset($query['join'][$name])){ |
@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return self::getOccursWhereClauseGeneral($table_name, $rel_table, $start_ts_obj, $end_ts_obj, $field_name, array('self', 'until')); |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param User $user_focus |
|
135 | + */ |
|
133 | 136 | function get_freebusy_activities($user_focus, $start_date_time, $end_date_time){ |
134 | 137 | $act_list = array(); |
135 | 138 | $vcal_focus = new vCal(); |
@@ -258,7 +261,7 @@ discard block |
||
258 | 261 | * @param SugarDateTime $start_ts_obj start date |
259 | 262 | * @param SugarDateTime $end_ts_obj end date |
260 | 263 | * @param string $field_name date field in table |
261 | - * @param array $callback callback function to generete specific SQL query-part |
|
264 | + * @param string[] $callback callback function to generete specific SQL query-part |
|
262 | 265 | * @return string |
263 | 266 | */ |
264 | 267 | protected static function getOccursWhereClauseGeneral($table_name, $rel_table, $start_ts_obj, $end_ts_obj, $field_name, $callback) |