@@ -507,6 +507,9 @@ |
||
507 | 507 | return $order_by; |
508 | 508 | } |
509 | 509 | |
510 | + /** |
|
511 | + * @return string |
|
512 | + */ |
|
510 | 513 | function displayListPlain($layout_def) { |
511 | 514 | global $timedate; |
512 | 515 | $content = parent:: displayListPlain($layout_def); |
@@ -285,6 +285,9 @@ |
||
285 | 285 | } |
286 | 286 | } |
287 | 287 | |
288 | + /** |
|
289 | + * @return string |
|
290 | + */ |
|
288 | 291 | function _get_column_alias($layout_def) |
289 | 292 | { |
290 | 293 | $alias_arr = array(); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | * Convenience function for generating HTMLPurifier_ConfigSchema_ValidatorAtom |
214 | 214 | * for validating simple member variables of objects. |
215 | 215 | * @param $obj |
216 | - * @param $member |
|
216 | + * @param string $member |
|
217 | 217 | * @return HTMLPurifier_ConfigSchema_ValidatorAtom |
218 | 218 | */ |
219 | 219 | protected function with($obj, $member) |
@@ -479,6 +479,9 @@ discard block |
||
479 | 479 | return $this->tree->save(); |
480 | 480 | } |
481 | 481 | |
482 | + /** |
|
483 | + * @return string |
|
484 | + */ |
|
482 | 485 | private function char() |
483 | 486 | { |
484 | 487 | return ($this->char < $this->EOF) |
@@ -486,6 +489,11 @@ discard block |
||
486 | 489 | : false; |
487 | 490 | } |
488 | 491 | |
492 | + /** |
|
493 | + * @param integer $s |
|
494 | + * |
|
495 | + * @return string |
|
496 | + */ |
|
489 | 497 | private function character($s, $l = 0) |
490 | 498 | { |
491 | 499 | if ($s + $l < $this->EOF) { |
@@ -497,6 +505,10 @@ discard block |
||
497 | 505 | } |
498 | 506 | } |
499 | 507 | |
508 | + /** |
|
509 | + * @param string $char_class |
|
510 | + * @param integer $start |
|
511 | + */ |
|
500 | 512 | private function characters($char_class, $start) |
501 | 513 | { |
502 | 514 | return preg_replace('#^([' . $char_class . ']+).*#s', '\\1', substr($this->data, $start)); |
@@ -4646,6 +4658,9 @@ discard block |
||
4646 | 4658 | } |
4647 | 4659 | } |
4648 | 4660 | |
4661 | + /** |
|
4662 | + * @param string[] $elements |
|
4663 | + */ |
|
4649 | 4664 | private function clearStackToTableContext($elements) |
4650 | 4665 | { |
4651 | 4666 | /* When the steps above require the UA to clear the stack back to a |
@@ -1329,6 +1329,9 @@ discard block |
||
1329 | 1329 | |
1330 | 1330 | // {{{ _copymove() |
1331 | 1331 | |
1332 | + /** |
|
1333 | + * @param string $what |
|
1334 | + */ |
|
1332 | 1335 | function _copymove($what) |
1333 | 1336 | { |
1334 | 1337 | $options = Array(); |
@@ -1657,7 +1660,7 @@ discard block |
||
1657 | 1660 | * defined in RFC 2518 section 9.4 |
1658 | 1661 | * |
1659 | 1662 | * @param void |
1660 | - * @return void |
|
1663 | + * @return boolean |
|
1661 | 1664 | */ |
1662 | 1665 | function _check_if_header_conditions() |
1663 | 1666 | { |
@@ -1721,6 +1724,7 @@ discard block |
||
1721 | 1724 | * |
1722 | 1725 | * @param string path of resource to check |
1723 | 1726 | * @param bool exclusive lock? |
1727 | + * @param string $path |
|
1724 | 1728 | */ |
1725 | 1729 | function _check_lock_status($path, $exclusive_only = false) |
1726 | 1730 | { |
@@ -1820,6 +1824,7 @@ discard block |
||
1820 | 1824 | * full urlencode() encoding confuses some clients ... |
1821 | 1825 | * |
1822 | 1826 | * @param string URL to encode |
1827 | + * @param string $url |
|
1823 | 1828 | * @return string encoded URL |
1824 | 1829 | */ |
1825 | 1830 | function _urlencode($url) |
@@ -1848,6 +1853,7 @@ discard block |
||
1848 | 1853 | * UTF-8 encode property values if not already done so |
1849 | 1854 | * |
1850 | 1855 | * @param string text to encode |
1856 | + * @param string $text |
|
1851 | 1857 | * @return string utf-8 encoded text |
1852 | 1858 | */ |
1853 | 1859 | function _prop_encode($text) |
@@ -58,6 +58,7 @@ |
||
58 | 58 | * constructor |
59 | 59 | * |
60 | 60 | * @access public |
61 | + * @param string $path |
|
61 | 62 | */ |
62 | 63 | function _parse_propfind($path) |
63 | 64 | { |
@@ -72,7 +72,8 @@ |
||
72 | 72 | /** |
73 | 73 | * constructor |
74 | 74 | * |
75 | - * @param string path of input stream |
|
75 | + * @param string path of input stream |
|
76 | + * @param string $path |
|
76 | 77 | * @access public |
77 | 78 | */ |
78 | 79 | function _parse_proppatch($path) |
@@ -330,6 +330,9 @@ discard block |
||
330 | 330 | |
331 | 331 | } |
332 | 332 | |
333 | +/** |
|
334 | + * @param SugarBean $bean |
|
335 | + */ |
|
333 | 336 | function getDisplayValue($bean, $field, $method = "save") |
334 | 337 | { |
335 | 338 | |
@@ -471,6 +474,9 @@ discard block |
||
471 | 474 | |
472 | 475 | } |
473 | 476 | |
477 | +/** |
|
478 | + * @return string |
|
479 | + */ |
|
474 | 480 | function convertDateUserToDB($value) |
475 | 481 | { |
476 | 482 | global $timedate; |
@@ -482,6 +488,9 @@ discard block |
||
482 | 488 | return $value; |
483 | 489 | } |
484 | 490 | |
491 | +/** |
|
492 | + * @param SugarBean $bean |
|
493 | + */ |
|
485 | 494 | function checkAccess($bean){ |
486 | 495 | |
487 | 496 | if($bean->ACLAccess('EditView')) { |
@@ -71,12 +71,20 @@ discard block |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $dispField |
|
76 | + * @param string $type |
|
77 | + * @param string $required |
|
78 | + */ |
|
74 | 79 | function addSpecialField($dispField, $realField, $type, $required, $prefix = '') { |
75 | 80 | if (isset($this->sugarbean->field_name_map[$realField]['vname'])) { |
76 | 81 | $this->addFieldGeneric($dispField, 'date', $this->sugarbean->field_name_map[$realField]['vname'], $required, $prefix ); |
77 | 82 | } |
78 | 83 | } |
79 | 84 | |
85 | + /** |
|
86 | + * @param string $required |
|
87 | + */ |
|
80 | 88 | function addField($field,$required, $prefix='', $displayField='', $translate = false){ |
81 | 89 | if ($field == "id") return; |
82 | 90 | if(isset($this->sugarbean->field_name_map[$field]['vname'])){ |
@@ -184,6 +192,10 @@ discard block |
||
184 | 192 | } |
185 | 193 | |
186 | 194 | // Bug #47961 Generator of callback validator |
195 | + |
|
196 | + /** |
|
197 | + * @param string $prefix |
|
198 | + */ |
|
187 | 199 | function addFieldCallback($field, $type, $displayName, $required, $prefix, $callback) |
188 | 200 | { |
189 | 201 | $this->script .= 'addToValidateCallback("' |
@@ -230,6 +242,11 @@ discard block |
||
230 | 242 | . $this->stripEndColon(translate($displayName,$this->sugarbean->module_dir)) . "', '$compareTo', '$allowBlank' );\n"; |
231 | 243 | } |
232 | 244 | |
245 | + /** |
|
246 | + * @param string $type |
|
247 | + * @param string $displayName |
|
248 | + * @param string $required |
|
249 | + */ |
|
233 | 250 | function addToValidateBinaryDependency($field, $type, $displayName, $required, $prefix='',$compareTo){ |
234 | 251 | $this->script .= "addToValidateBinaryDependency('".$this->formname."', '".$prefix.$field."', '".$type . "', {$this->getRequiredString($required)},'" |
235 | 252 | . $this->stripEndColon(translate($displayName,$this->sugarbean->module_dir)) . "', '$compareTo' );\n"; |
@@ -248,6 +265,9 @@ discard block |
||
248 | 265 | $this->script .= "addToValidateIsInArray('{$this->formname}', '{$name}', '{$type}', {$req}, '".$this->stripEndColon(translate($displayName,$this->sugarbean->module_dir))."', '{$arr}', '{$operator}');\n"; |
249 | 266 | } |
250 | 267 | |
268 | + /** |
|
269 | + * @param string $prefix |
|
270 | + */ |
|
251 | 271 | function addAllFields($prefix,$skip_fields=null, $translate = false){ |
252 | 272 | if (!isset($skip_fields)) |
253 | 273 | { |