@@ -258,6 +258,11 @@ discard block |
||
258 | 258 | $this->Data[$SourceID]["Connections"][] = $TargetID; |
259 | 259 | } |
260 | 260 | /* Get the median linked nodes position */ |
261 | + |
|
262 | + /** |
|
263 | + * @param double $X |
|
264 | + * @param double $Y |
|
265 | + */ |
|
261 | 266 | function getMedianOffset($Key,$X,$Y) |
262 | 267 | { |
263 | 268 | $Cpt = 1; |
@@ -277,6 +282,10 @@ discard block |
||
277 | 282 | } |
278 | 283 | |
279 | 284 | /* Return the ID of the attached partner with the biggest weight */ |
285 | + |
|
286 | + /** |
|
287 | + * @return double |
|
288 | + */ |
|
280 | 289 | function getBiggestPartner($Key) |
281 | 290 | { |
282 | 291 | if ( !isset($this->Data[$Key]["Connections"]) ) { return(""); } |
@@ -57,6 +57,9 @@ |
||
57 | 57 | parent::Basic(); |
58 | 58 | } |
59 | 59 | |
60 | + /** |
|
61 | + * @param AOR_Report $parent |
|
62 | + */ |
|
60 | 63 | function save_lines($post_data, $parent, $key = ''){ |
61 | 64 | |
62 | 65 | require_once('modules/AOW_WorkFlow/aow_utils.php'); |
@@ -322,6 +322,9 @@ discard block |
||
322 | 322 | return $rows; |
323 | 323 | } |
324 | 324 | |
325 | + /** |
|
326 | + * @param string $body |
|
327 | + */ |
|
325 | 328 | private function getMultiGroupFrameHTML($header, $body) { |
326 | 329 | $html = '<div class="multi-group-list" style="border: 1px solid black; padding: 10px;"> |
327 | 330 | <h3>' . $header . '</h3> |
@@ -330,6 +333,9 @@ discard block |
||
330 | 333 | return $html; |
331 | 334 | } |
332 | 335 | |
336 | + /** |
|
337 | + * @param string $html |
|
338 | + */ |
|
333 | 339 | private function addDataIdValueToInnertext($html) { |
334 | 340 | preg_match('/\sdata-id-value\s*=\s*"([^"]*)"/', $html, $match); |
335 | 341 | $html = preg_replace('/(>)([^<]*)(<\/\w+>$)/', '$1$2' . $match[1] . '$3', $html); |
@@ -920,6 +926,9 @@ discard block |
||
920 | 926 | |
921 | 927 | } |
922 | 928 | |
929 | + /** |
|
930 | + * @param string $query_where |
|
931 | + */ |
|
923 | 932 | private function queryWhereRepair($query_where) { |
924 | 933 | |
925 | 934 | // remove empty parenthesis and fix query syntax |
@@ -1030,6 +1039,9 @@ discard block |
||
1030 | 1039 | } |
1031 | 1040 | |
1032 | 1041 | |
1042 | + /** |
|
1043 | + * @param string $type |
|
1044 | + */ |
|
1033 | 1045 | function build_report_query_join($name, $alias, $parentAlias, SugarBean $module, $type, $query = array(),SugarBean $rel_module = null ){ |
1034 | 1046 | |
1035 | 1047 | if(!isset($query['join'][$alias])){ |
@@ -88,6 +88,9 @@ |
||
88 | 88 | return $params; |
89 | 89 | } |
90 | 90 | |
91 | +/** |
|
92 | + * @param SugarBean $report |
|
93 | + */ |
|
91 | 94 | function getConditionsAsParameters($report, $override = array()) |
92 | 95 | { |
93 | 96 | if (empty($report)) { |
@@ -138,6 +138,10 @@ |
||
138 | 138 | return $charts; |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param string $modulePath |
|
143 | + * @param string $field |
|
144 | + */ |
|
141 | 145 | public function getDisplayForField($modulePath, $field, $reportModule){ |
142 | 146 | $modulePathDisplay = array(); |
143 | 147 | $currentBean = BeanFactory::getBean($reportModule); |
@@ -51,6 +51,9 @@ discard block |
||
51 | 51 | return $templates; |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param string $module |
|
56 | + */ |
|
54 | 57 | static function LVPopupHtml($module){ |
55 | 58 | global $app_strings; |
56 | 59 | |
@@ -106,6 +109,9 @@ discard block |
||
106 | 109 | } |
107 | 110 | } |
108 | 111 | |
112 | + /** |
|
113 | + * @param string $module |
|
114 | + */ |
|
109 | 115 | static function DVPopupHtml($module){ |
110 | 116 | global $app_strings; |
111 | 117 |
@@ -423,6 +423,7 @@ discard block |
||
423 | 423 | |
424 | 424 | /** |
425 | 425 | * Encode a string to be used for CODE 39 Extended mode. |
426 | + * @param string $code |
|
426 | 427 | */ |
427 | 428 | protected function encode_code39_ext($code) { |
428 | 429 | $encode = array( |
@@ -618,6 +619,7 @@ discard block |
||
618 | 619 | |
619 | 620 | /** |
620 | 621 | * Calculate CODE 93 checksum (modulo 47). |
622 | + * @param string $code |
|
621 | 623 | */ |
622 | 624 | protected function checksum_code93($code) { |
623 | 625 | $chars = array( |
@@ -778,6 +780,7 @@ discard block |
||
778 | 780 | |
779 | 781 | /** |
780 | 782 | * Convert binary barcode sequence to barcode array |
783 | + * @param string $seq |
|
781 | 784 | */ |
782 | 785 | protected function binseq_to_array($seq, $bararray) { |
783 | 786 | $len = strlen($seq); |
@@ -1844,6 +1847,7 @@ discard block |
||
1844 | 1847 | /** |
1845 | 1848 | * Convert large integer number to hexadecimal representation. |
1846 | 1849 | * (requires PHP bcmath extension) |
1850 | + * @param string $number |
|
1847 | 1851 | */ |
1848 | 1852 | public function dec_to_hex($number) { |
1849 | 1853 | $i = 0; |
@@ -1866,6 +1870,7 @@ discard block |
||
1866 | 1870 | /** |
1867 | 1871 | * Convert large hexadecimal number to decimal representation (string). |
1868 | 1872 | * (requires PHP bcmath extension) |
1873 | + * @param string $hex |
|
1869 | 1874 | */ |
1870 | 1875 | public function hex_to_dec($hex) { |
1871 | 1876 | $dec = 0; |
@@ -1913,6 +1918,7 @@ discard block |
||
1913 | 1918 | |
1914 | 1919 | /** |
1915 | 1920 | * Reverse unsigned short value |
1921 | + * @param integer $num |
|
1916 | 1922 | */ |
1917 | 1923 | protected function imb_reverse_us($num) { |
1918 | 1924 | $rev = 0; |
@@ -1926,6 +1932,8 @@ discard block |
||
1926 | 1932 | |
1927 | 1933 | /** |
1928 | 1934 | * generate Nof13 tables used for Intelligent Mail Barcode |
1935 | + * @param integer $n |
|
1936 | + * @param integer $size |
|
1929 | 1937 | */ |
1930 | 1938 | protected function imb_tables($n, $size) { |
1931 | 1939 | $table = array(); |
@@ -142,11 +142,17 @@ discard block |
||
142 | 142 | return $info; |
143 | 143 | } |
144 | 144 | |
145 | +/** |
|
146 | + * @param string $s |
|
147 | + */ |
|
145 | 148 | function _fourbytes2int_le($s) { |
146 | 149 | //Read a 4-byte integer from string |
147 | 150 | return (ord($s[3])<<24) + (ord($s[2])<<16) + (ord($s[1])<<8) + ord($s[0]); |
148 | 151 | } |
149 | 152 | |
153 | +/** |
|
154 | + * @param string $s |
|
155 | + */ |
|
150 | 156 | function _twobytes2int_le($s) { |
151 | 157 | //Read a 2-byte integer from string |
152 | 158 | return (ord(substr($s, 1, 1))<<8) + ord(substr($s, 0, 1)); |
@@ -155,6 +161,10 @@ discard block |
||
155 | 161 | |
156 | 162 | # Decoder for RLE8 compression in windows bitmaps |
157 | 163 | # see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp |
164 | +/** |
|
165 | + * @param string $str |
|
166 | + * @param integer $width |
|
167 | + */ |
|
158 | 168 | function rle8_decode ($str, $width){ |
159 | 169 | $lineWidth = $width + (3 - ($width-1) % 4); |
160 | 170 | $out = ''; |
@@ -192,6 +202,10 @@ discard block |
||
192 | 202 | |
193 | 203 | # Decoder for RLE4 compression in windows bitmaps |
194 | 204 | # see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp |
205 | +/** |
|
206 | + * @param string $str |
|
207 | + * @param integer $width |
|
208 | + */ |
|
195 | 209 | function rle4_decode ($str, $width){ |
196 | 210 | $w = floor($width/2) + ($width % 2); |
197 | 211 | $lineWidth = $w + (3 - ( ($width-1) / 2) % 4); |
@@ -600,6 +600,9 @@ discard block |
||
600 | 600 | } |
601 | 601 | } |
602 | 602 | |
603 | +/** |
|
604 | + * @param string $js |
|
605 | + */ |
|
603 | 606 | function SetFormChoiceJS( $name, $js ) { |
604 | 607 | $js = str_replace("\t",' ', trim($js) ); |
605 | 608 | if ( isset($name) && isset($js) ) { |
@@ -806,6 +809,9 @@ discard block |
||
806 | 809 | } |
807 | 810 | |
808 | 811 | |
812 | + /** |
|
813 | + * @param string $url |
|
814 | + */ |
|
809 | 815 | function SetFormSubmit( $w, $h, $name, $value = 'Submit', $url, $title = '', $typ = 'html', $method = 'POST', $flags = array(), $background_col=false, $border_col=false, $noprint=false) { |
810 | 816 | if (!$name) { $name = 'Submit'; } |
811 | 817 | $this->SetFormButton( $w, $h, $name, $value, 'submit', $title, $flags, false, false, $background_col, $border_col, $noprint); |
@@ -842,6 +848,9 @@ discard block |
||
842 | 848 | } |
843 | 849 | |
844 | 850 | |
851 | + /** |
|
852 | + * @param string $type |
|
853 | + */ |
|
845 | 854 | function SetFormButton( $bb, $hh, $name, $value, $type, $title = '', $flags = array(), $checked=false, $disabled=false, $background_col=false, $border_col=false, $noprint=false ) { |
846 | 855 | $this->formn++; |
847 | 856 | if (!preg_match('/^[a-zA-Z0-9_:\-]+$/', $name)) { |