@@ -374,6 +374,11 @@ discard block |
||
374 | 374 | } |
375 | 375 | |
376 | 376 | // Function which returns the value based on result type (array / ADODB ResultSet) |
377 | + |
|
378 | + /** |
|
379 | + * @param integer $index |
|
380 | + * @param string $columnname |
|
381 | + */ |
|
377 | 382 | private function resolve_query_result_value($result, $index, $columnname) |
378 | 383 | { |
379 | 384 | $adb = PearDatabase::getInstance(); |
@@ -633,7 +638,7 @@ discard block |
||
633 | 638 | } |
634 | 639 | |
635 | 640 | /** Function to delete a record in the specifed table |
636 | - * @param $table_name -- table name:: Type varchar |
|
641 | + * @param string $table_name -- table name:: Type varchar |
|
637 | 642 | * The function will delete a record .The id is obtained from the class variable $this->id and the columnname got from $this->tab_name_index[$table_name] |
638 | 643 | */ |
639 | 644 | public function deleteRelation($table_name) |
@@ -817,6 +822,7 @@ discard block |
||
817 | 822 | |
818 | 823 | /** Function to saves the values in all the tables mentioned in the class variable $tab_name for the specified module |
819 | 824 | * @param $module -- module:: Type varchar |
825 | + * @param string $module_name |
|
820 | 826 | */ |
821 | 827 | public function save($module_name, $fileid = '') |
822 | 828 | { |
@@ -2562,10 +2568,10 @@ discard block |
||
2562 | 2568 | |
2563 | 2569 | /** |
2564 | 2570 | * |
2565 | - * @param <type> $module |
|
2566 | - * @param <type> $user |
|
2571 | + * @param Users $user |
|
2567 | 2572 | * @param <type> $parentRole |
2568 | 2573 | * @param <type> $userGroups |
2574 | + * @param string $tableName |
|
2569 | 2575 | */ |
2570 | 2576 | protected function setupTemporaryTable($tableName, $tabId, $user, $parentRole, $userGroups) |
2571 | 2577 | { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Function to get the class name of a given Component, of given Type, for a given Module |
101 | - * @param <String> $componentType |
|
101 | + * @param string $componentType |
|
102 | 102 | * @param <String> $componentName |
103 | 103 | * @param <String> $moduleName |
104 | 104 | * @return <String> Required Class Name |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | return $user; |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param Vtiger_Request $request |
|
59 | + */ |
|
57 | 60 | protected function triggerCheckPermission($handler, $request) |
58 | 61 | { |
59 | 62 | $moduleName = $request->getModule(); |
@@ -73,6 +76,9 @@ discard block |
||
73 | 76 | throw new \Exception\NoPermitted('LBL_NOT_ACCESSIBLE'); |
74 | 77 | } |
75 | 78 | |
79 | + /** |
|
80 | + * @param Vtiger_Request $request |
|
81 | + */ |
|
76 | 82 | protected function triggerPreProcess($handler, $request) |
77 | 83 | { |
78 | 84 | if ($request->isAjax()) { |
@@ -82,6 +88,9 @@ discard block |
||
82 | 88 | $handler->preProcess($request); |
83 | 89 | } |
84 | 90 | |
91 | + /** |
|
92 | + * @param Vtiger_Request $request |
|
93 | + */ |
|
85 | 94 | protected function triggerPostProcess($handler, $request) |
86 | 95 | { |
87 | 96 | if ($request->isAjax()) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | /** Function to display the Products which are related to the PriceBook |
65 | 65 | * @param string $query - query to get the list of products which are related to the current PriceBook |
66 | - * @param object $focus - PriceBook object which contains all the information of the current PriceBook |
|
66 | + * @param PriceBooks $focus - PriceBook object which contains all the information of the current PriceBook |
|
67 | 67 | * @param string $returnset - return_module, return_action and return_id which are sequenced with & to pass to the URL which is optional |
68 | 68 | * return array $return_data which will be formed like array('header'=>$header,'entries'=>$entries_list) where as $header contains all the header columns and $entries_list will contain all the Product entries |
69 | 69 | */ |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | public $tag_start = 0; |
121 | 121 | private $dom = null; |
122 | 122 | |
123 | + /** |
|
124 | + * @param simple_html_dom $dom |
|
125 | + */ |
|
123 | 126 | public function __construct($dom) |
124 | 127 | { |
125 | 128 | $this->dom = $dom; |
@@ -1553,6 +1556,10 @@ discard block |
||
1553 | 1556 | } |
1554 | 1557 | |
1555 | 1558 | // parse attributes |
1559 | +/** |
|
1560 | + * @param simple_html_dom_node $node |
|
1561 | + * @param string[] $space |
|
1562 | + */ |
|
1556 | 1563 | protected function parse_attr($node, $name, &$space) |
1557 | 1564 | { |
1558 | 1565 | // Per sourceforge: http://sourceforge.net/tracker/?func=detail&aid=3061408&group_id=218559&atid=1044037 |
@@ -1589,6 +1596,10 @@ discard block |
||
1589 | 1596 | } |
1590 | 1597 | |
1591 | 1598 | // link node's parent |
1599 | +/** |
|
1600 | + * @param simple_html_dom_node $node |
|
1601 | + * @param boolean $is_child |
|
1602 | + */ |
|
1592 | 1603 | protected function link_nodes(&$node, $is_child) |
1593 | 1604 | { |
1594 | 1605 | $node->parent = $this->parent; |
@@ -1599,6 +1610,9 @@ discard block |
||
1599 | 1610 | } |
1600 | 1611 | |
1601 | 1612 | // as a text node |
1613 | +/** |
|
1614 | + * @param string $tag |
|
1615 | + */ |
|
1602 | 1616 | protected function as_text_node($tag) |
1603 | 1617 | { |
1604 | 1618 | $node = new simple_html_dom_node($this); |
@@ -1609,12 +1623,18 @@ discard block |
||
1609 | 1623 | return true; |
1610 | 1624 | } |
1611 | 1625 | |
1626 | +/** |
|
1627 | + * @param string $chars |
|
1628 | + */ |
|
1612 | 1629 | protected function skip($chars) |
1613 | 1630 | { |
1614 | 1631 | $this->pos += strspn($this->doc, $chars, $this->pos); |
1615 | 1632 | $this->char = ($this->pos < $this->size) ? $this->doc[$this->pos] : null; // next |
1616 | 1633 | } |
1617 | 1634 | |
1635 | +/** |
|
1636 | + * @param string $chars |
|
1637 | + */ |
|
1618 | 1638 | protected function copy_skip($chars) |
1619 | 1639 | { |
1620 | 1640 | $pos = $this->pos; |
@@ -1626,6 +1646,9 @@ discard block |
||
1626 | 1646 | return substr($this->doc, $pos, $len); |
1627 | 1647 | } |
1628 | 1648 | |
1649 | +/** |
|
1650 | + * @param string $chars |
|
1651 | + */ |
|
1629 | 1652 | protected function copy_until($chars) |
1630 | 1653 | { |
1631 | 1654 | $pos = $this->pos; |
@@ -1635,6 +1658,9 @@ discard block |
||
1635 | 1658 | return substr($this->doc, $pos, $len); |
1636 | 1659 | } |
1637 | 1660 | |
1661 | +/** |
|
1662 | + * @param string $char |
|
1663 | + */ |
|
1638 | 1664 | protected function copy_until_char($char) |
1639 | 1665 | { |
1640 | 1666 | if ($this->char === null) |
@@ -1655,6 +1681,9 @@ discard block |
||
1655 | 1681 | return substr($this->doc, $pos_old, $pos - $pos_old); |
1656 | 1682 | } |
1657 | 1683 | |
1684 | +/** |
|
1685 | + * @param string $char |
|
1686 | + */ |
|
1658 | 1687 | protected function copy_until_char_escape($char) |
1659 | 1688 | { |
1660 | 1689 | if ($this->char === null) |
@@ -1686,6 +1715,9 @@ discard block |
||
1686 | 1715 | |
1687 | 1716 | // remove noise from html content |
1688 | 1717 | // save the noise in the $this->noise array. |
1718 | +/** |
|
1719 | + * @param string $pattern |
|
1720 | + */ |
|
1689 | 1721 | protected function remove_noise($pattern, $remove_tag = false) |
1690 | 1722 | { |
1691 | 1723 | global $debugObject; |
@@ -1713,6 +1745,9 @@ discard block |
||
1713 | 1745 | } |
1714 | 1746 | |
1715 | 1747 | // restore noise to html content |
1748 | +/** |
|
1749 | + * @param string|null $text |
|
1750 | + */ |
|
1716 | 1751 | function restore_noise($text) |
1717 | 1752 | { |
1718 | 1753 | global $debugObject; |
@@ -59,6 +59,8 @@ |
||
59 | 59 | * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. |
60 | 60 | * All Rights Reserved. |
61 | 61 | * Contributor(s): ______________________________________.. |
62 | + * @param string $item_id |
|
63 | + * @param string $item_summary |
|
62 | 64 | */ |
63 | 65 | public function track_view($user_id, $current_module, $item_id, $item_summary) |
64 | 66 | { |
@@ -378,6 +378,11 @@ |
||
378 | 378 | * Returns an string value |
379 | 379 | */ |
380 | 380 | |
381 | +/** |
|
382 | + * @param string $url_qry |
|
383 | + * @param string $module |
|
384 | + * @param string $related_module |
|
385 | + */ |
|
381 | 386 | function getRelatedTableHeaderNavigation($navigation_array, $url_qry, $module, $related_module, $recordid) |
382 | 387 | { |
383 | 388 | $log = LoggerManager::getInstance(); |
@@ -395,6 +395,9 @@ discard block |
||
395 | 395 | /** Report module information based on used. */ |
396 | 396 | static $_reportmodule_infoperuser_cache = []; |
397 | 397 | |
398 | + /** |
|
399 | + * @param string $reportid |
|
400 | + */ |
|
398 | 401 | static function lookupReport_Info($userid, $reportid) |
399 | 402 | { |
400 | 403 | |
@@ -406,6 +409,9 @@ discard block |
||
406 | 409 | return false; |
407 | 410 | } |
408 | 411 | |
412 | + /** |
|
413 | + * @param string $reportid |
|
414 | + */ |
|
409 | 415 | static function updateReport_Info($userid, $reportid, $primarymodule, $secondarymodules, $reporttype, $reportname, $description, $folderid, $owner) |
410 | 416 | { |
411 | 417 | if (!isset(self::$_reportmodule_infoperuser_cache[$userid])) { |
@@ -428,6 +434,9 @@ discard block |
||
428 | 434 | /** Report module sub-ordinate users information. */ |
429 | 435 | static $_reportmodule_subordinateuserid_cache = []; |
430 | 436 | |
437 | + /** |
|
438 | + * @param string $reportid |
|
439 | + */ |
|
431 | 440 | static function lookupReport_SubordinateUsers($reportid) |
432 | 441 | { |
433 | 442 | if (isset(self::$_reportmodule_subordinateuserid_cache[$reportid])) { |
@@ -436,6 +445,9 @@ discard block |
||
436 | 445 | return false; |
437 | 446 | } |
438 | 447 | |
448 | + /** |
|
449 | + * @param string $reportid |
|
450 | + */ |
|
439 | 451 | static function updateReport_SubordinateUsers($reportid, $userids) |
440 | 452 | { |
441 | 453 | self::$_reportmodule_subordinateuserid_cache[$reportid] = $userids; |
@@ -444,6 +456,9 @@ discard block |
||
444 | 456 | /** Report module information based on used. */ |
445 | 457 | static $_reportmodule_scheduledinfoperuser_cache = []; |
446 | 458 | |
459 | + /** |
|
460 | + * @param string $reportid |
|
461 | + */ |
|
447 | 462 | static function lookupReport_ScheduledInfo($userid, $reportid) |
448 | 463 | { |
449 | 464 | |
@@ -455,6 +470,10 @@ discard block |
||
455 | 470 | return false; |
456 | 471 | } |
457 | 472 | |
473 | + /** |
|
474 | + * @param string $reportid |
|
475 | + * @param boolean $isScheduled |
|
476 | + */ |
|
458 | 477 | static function updateReport_ScheduledInfo($userid, $reportid, $isScheduled, $scheduledFormat, $scheduledInterval, $scheduledRecipients, $scheduledTime) |
459 | 478 | { |
460 | 479 | if (!isset(self::$_reportmodule_scheduledinfoperuser_cache[$userid])) { |
@@ -479,6 +498,9 @@ discard block |
||
479 | 498 | self::$_userSignature[$userName] = $signature; |
480 | 499 | } |
481 | 500 | |
501 | + /** |
|
502 | + * @return string |
|
503 | + */ |
|
482 | 504 | public static function getUserSignature($userName) |
483 | 505 | { |
484 | 506 | return self::$_userSignature[$userName]; |
@@ -491,6 +513,9 @@ discard block |
||
491 | 513 | self::$_userFullName[$userName] = $fullName; |
492 | 514 | } |
493 | 515 | |
516 | + /** |
|
517 | + * @return string |
|
518 | + */ |
|
494 | 519 | public static function getUserFullName($userName) |
495 | 520 | { |
496 | 521 | return self::$_userFullName[$userName]; |
@@ -503,6 +528,9 @@ discard block |
||
503 | 528 | return self::$_report_field_bylabel[$module][$label]; |
504 | 529 | } |
505 | 530 | |
531 | + /** |
|
532 | + * @param string $label |
|
533 | + */ |
|
506 | 534 | public static function setReportFieldByLabel($module, $label, $fieldInfo) |
507 | 535 | { |
508 | 536 | self::$_report_field_bylabel[$module][$label] = $fieldInfo; |
@@ -48,6 +48,9 @@ |
||
48 | 48 | return $row; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param boolean $t |
|
53 | + */ |
|
51 | 54 | public static function sanitizeData($newRow, $meta, $t = null) |
52 | 55 | { |
53 | 56 |