@@ -126,6 +126,8 @@ discard block |
||
126 | 126 | * @param string fromFolder GUID of source folder |
127 | 127 | * @param string toFolder GUID of destination folder |
128 | 128 | * @param string beanId GUID of SugarBean being moved |
129 | + * @param string $fromFolder |
|
130 | + * @param string $toFolder |
|
129 | 131 | */ |
130 | 132 | function move($fromFolder, $toFolder, $beanId) { |
131 | 133 | $q = "UPDATE folders_rel SET folder_id = '{$toFolder}' WHERE folder_id = '{$fromFolder}' AND polymorphic_id = '{$beanId}' AND deleted = 0"; |
@@ -134,6 +136,9 @@ discard block |
||
134 | 136 | |
135 | 137 | /** |
136 | 138 | * Copies one bean from one folder to another |
139 | + * @param string $fromFolder |
|
140 | + * @param string $toFolder |
|
141 | + * @param string $module |
|
137 | 142 | */ |
138 | 143 | function copyBean($fromFolder, $toFolder, $beanId, $module) { |
139 | 144 | $q = "INSERT INTO folders_rel (id, folder_id, polymorphic_module, polymorphic_id, deleted) |
@@ -448,6 +453,7 @@ discard block |
||
448 | 453 | |
449 | 454 | /** |
450 | 455 | * Convenience method, pass a SugarBean and User to this to add anything to a given folder |
456 | + * @param Email $bean |
|
451 | 457 | */ |
452 | 458 | function addBean($bean, $user=null) { |
453 | 459 | if(empty($bean->id) || empty($bean->module_dir)) { |
@@ -742,6 +748,7 @@ discard block |
||
742 | 748 | |
743 | 749 | /** |
744 | 750 | * Builds children nodes for folders for TreeView |
751 | + * @param string $nodePath |
|
745 | 752 | * @return $folderNode TreeView node |
746 | 753 | */ |
747 | 754 | function buildTreeNodeFolders($a, $nodePath, $folderStates, $subscriptions) { |
@@ -47,8 +47,8 @@ |
||
47 | 47 | /** |
48 | 48 | * Main method for handling logging a message to the logger |
49 | 49 | * |
50 | - * @param string $level logging level for the message |
|
51 | 50 | * @param string $message |
51 | + * @return void |
|
52 | 52 | */ |
53 | 53 | public function log( |
54 | 54 | $method, |
@@ -97,6 +97,7 @@ |
||
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Used by the diagnostic tools to get SugarLogger log file information |
100 | + * @return string |
|
100 | 101 | */ |
101 | 102 | public function getLogFileNameWithPath() |
102 | 103 | { |
@@ -158,7 +158,6 @@ |
||
158 | 158 | * Create OAuth provider |
159 | 159 | * |
160 | 160 | * Checks current request for OAuth valitidy |
161 | - * @param bool $add_rest add REST endpoint as request path |
|
162 | 161 | */ |
163 | 162 | public function __construct($req_path = '') |
164 | 163 | { |
@@ -105,6 +105,10 @@ discard block |
||
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param string $module |
|
110 | + * @param string $lang |
|
111 | + */ |
|
108 | 112 | static function saveCache($module,$lang, $loaded_mod_strings, $additonal_objects= array()){ |
109 | 113 | if(empty($lang)) |
110 | 114 | $lang = $GLOBALS['sugar_config']['default_language']; |
@@ -226,6 +230,9 @@ discard block |
||
226 | 230 | LanguageManager::saveCache($module, $lang, $loaded_mod_strings); |
227 | 231 | } |
228 | 232 | |
233 | + /** |
|
234 | + * @param string $module |
|
235 | + */ |
|
229 | 236 | static function loadModuleLanguage($module, $lang, $refresh=false){ |
230 | 237 | //here check if the cache file exists, if it does then load it, if it doesn't |
231 | 238 | //then call refreshVardef |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * This method calculate the font size of $this->filename in KB |
141 | 141 | * .php file + .z file + .ctg.z file |
142 | - * @return Integer font Size in KB |
|
142 | + * @return double font Size in KB |
|
143 | 143 | */ |
144 | 144 | private function getFontSize(){ |
145 | 145 | $fileSize=filesize($this->fontPath.$this->filename); |
@@ -326,8 +326,8 @@ discard block |
||
326 | 326 | } |
327 | 327 | /** |
328 | 328 | * This method add a font to SugarCRM from a font file and a metric file using MakeFont() |
329 | - * @param $font_file string |
|
330 | - * @param $metric_file string |
|
329 | + * @param string $font_file string |
|
330 | + * @param string $metric_file string |
|
331 | 331 | * @param $embedded boolean |
332 | 332 | * @param $encoding_table string |
333 | 333 | * @param $patch array |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | * |
264 | 264 | * @param string $family Family font. It can be either a name defined by AddFont() or one of the standard Type1 families (case insensitive):<ul><li>times (Times-Roman)</li><li>timesb (Times-Bold)</li><li>timesi (Times-Italic)</li><li>timesbi (Times-BoldItalic)</li><li>helvetica (Helvetica)</li><li>helveticab (Helvetica-Bold)</li><li>helveticai (Helvetica-Oblique)</li><li>helveticabi (Helvetica-BoldOblique)</li><li>courier (Courier)</li><li>courierb (Courier-Bold)</li><li>courieri (Courier-Oblique)</li><li>courierbi (Courier-BoldOblique)</li><li>symbol (Symbol)</li><li>zapfdingbats (ZapfDingbats)</li></ul> It is also possible to pass an empty string. In that case, the current family is retained. |
265 | 265 | * @param string $style Font style. Possible values are (case insensitive):<ul><li>empty string: regular</li><li>B: bold</li><li>I: italic</li><li>U: underline</li><li>D: line trough</li></ul> or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats basic fonts or other fonts when not defined. |
266 | - * @param float $size Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12 |
|
266 | + * @param integer $size Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12 |
|
267 | 267 | * @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces. |
268 | 268 | * @access public |
269 | 269 | * @see include/tcpdf/TCPDF#SetFont() |
@@ -299,6 +299,7 @@ discard block |
||
299 | 299 | * the string to print in the PDF. |
300 | 300 | * The cell method is used by all the methods which print text (Write, MultiCell). |
301 | 301 | * @see include/tcpdf/TCPDF#Cell() |
302 | + * @param integer $w |
|
302 | 303 | */ |
303 | 304 | public function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0) { |
304 | 305 | parent::Cell($w, $h, prepare_string($txt), $border, $ln, $align, $fill, $link, $stretch); |
@@ -425,7 +426,7 @@ discard block |
||
425 | 426 | * Array[line number (0 to x)][cell header]['options'] = Array[cell properties] = values |
426 | 427 | * @param $returnHtml (bool) Return the table as HTML code instead of printing the HTML table |
427 | 428 | * @param $options Array which can contain : table (array of "HTML proprty"=>"value"),td (array of "HTML proprty"=>"value"), tr (array of "HTML proprty"=>"value"), isheader(bool), header (array of "HTML proprty"=>"value"), width (array 'column name'=>'width value + unit OR nothing') |
428 | - * @return the HTML code if $returnHtml set to true |
|
429 | + * @return string|null HTML code if $returnHtml set to true |
|
429 | 430 | */ |
430 | 431 | public function writeHTMLTable($item, $returnHtml=false, $options=NULL){ |
431 | 432 | //TODO ISSUE - width in % for the td have to be multiply by the number of column. |
@@ -488,10 +489,10 @@ discard block |
||
488 | 489 | |
489 | 490 | /** |
490 | 491 | * return the HTML code of the value wrap with the tag $tag. This method handle options (general and specific) |
491 | - * @param $tag |
|
492 | + * @param string $tag |
|
492 | 493 | * @param $value |
493 | 494 | * @param $options |
494 | - * @return the HTML wrapped code |
|
495 | + * @return string HTML wrapped code |
|
495 | 496 | */ |
496 | 497 | private function wrap($tag, $value, $options){ |
497 | 498 | if(empty($options[$tag])){ |
@@ -515,7 +516,7 @@ discard block |
||
515 | 516 | * Return the heigth of a line depending of the width, the font and the content |
516 | 517 | * @param $line Array containing the data of all the cells of the line |
517 | 518 | * @param $width Array containing the width of all the cells of the line |
518 | - * @return The heigth of the line |
|
519 | + * @return double heigth of the line |
|
519 | 520 | */ |
520 | 521 | private function getLineHeightFromArray($line, $width){ |
521 | 522 | $h=0; |
@@ -618,7 +619,7 @@ discard block |
||
618 | 619 | * between words. |
619 | 620 | * This method returns the estimated number of lines required to print the text. |
620 | 621 | * @param string $txt text to print |
621 | - * @param float $w width of cell. If 0, they extend up to the right margin of the page. |
|
622 | + * @param integer $w width of cell. If 0, they extend up to the right margin of the page. |
|
622 | 623 | * @return int Return the estimated number of lines. |
623 | 624 | * @access public |
624 | 625 | * @since 4.5.011 |
@@ -45,7 +45,8 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * load the correct Tcpdf |
47 | 47 | * @param string $type Tcpdf Type |
48 | - * @return valid Tcpdf |
|
48 | + * @param string $module |
|
49 | + * @return Sugarpdf Tcpdf |
|
49 | 50 | */ |
50 | 51 | function loadSugarpdf($type = 'default', $module, $bean = null, $sugarpdf_object_map = array()){ |
51 | 52 | $type = strtolower(basename($type)); |
@@ -109,7 +110,9 @@ discard block |
||
109 | 110 | * This is a private function which just helps the getSugarpdf function generate the |
110 | 111 | * proper Tcpdf object |
111 | 112 | * |
112 | - * @return a valid Sugarpdf |
|
113 | + * @param string $file |
|
114 | + * @param string $type |
|
115 | + * @return Sugarpdf valid Sugarpdf |
|
113 | 116 | */ |
114 | 117 | function _buildFromFile($file, &$bean, $sugarpdf_object_map, $type, $module){ |
115 | 118 | require_once($file); |
@@ -132,6 +135,7 @@ discard block |
||
132 | 135 | * @param object bean = the bean to pass to the Sugarpdf |
133 | 136 | * @param array Sugarpdf_object_map - the array which holds obejcts to pass between the |
134 | 137 | * controller and the tcpdf. |
138 | + * @param string $class |
|
135 | 139 | * |
136 | 140 | * @return Sugarpdf |
137 | 141 | */ |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * This function prepare a string to be ready for the PDF printing. |
84 | - * @param $string |
|
84 | + * @param string $string |
|
85 | 85 | * @return string |
86 | 86 | */ |
87 | 87 | function prepare_string($string){ |