@@ -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 | { |
@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | * ****************************************************************************** */ |
15 | 15 | |
16 | 16 | //Fix postgres queries |
17 | +/** |
|
18 | + * @param integer $debug |
|
19 | + */ |
|
17 | 20 | function fixPostgresQuery($query, $log, $debug) |
18 | 21 | { |
19 | 22 | // First select the query fields from the remaining query |
@@ -115,6 +118,9 @@ discard block |
||
115 | 118 | } |
116 | 119 | |
117 | 120 | //return an expanded table field list |
121 | +/** |
|
122 | + * @param string $table |
|
123 | + */ |
|
118 | 124 | function expandRecord($table, $log) |
119 | 125 | { |
120 | 126 | $result = ""; |
@@ -390,6 +390,9 @@ discard block |
||
390 | 390 | return false; |
391 | 391 | } |
392 | 392 | |
393 | + /** |
|
394 | + * @param string[] $names |
|
395 | + */ |
|
393 | 396 | public function focusColumnValues($names, $delimeter = "\n") |
394 | 397 | { |
395 | 398 | if (!is_array($names)) { |
@@ -414,6 +417,9 @@ discard block |
||
414 | 417 | return $defvalue; |
415 | 418 | } |
416 | 419 | |
420 | + /** |
|
421 | + * @param string $id |
|
422 | + */ |
|
417 | 423 | public function resolveReferenceLabel($id, $module = false) |
418 | 424 | { |
419 | 425 | if (empty($id)) { |
@@ -448,6 +454,9 @@ discard block |
||
448 | 454 | return $currencyField->getDisplayValue(null, true); |
449 | 455 | } |
450 | 456 | |
457 | + /** |
|
458 | + * @param string $value |
|
459 | + */ |
|
451 | 460 | public function formatDate($value) |
452 | 461 | { |
453 | 462 | return DateTimeField::convertToUserFormat($value); |
@@ -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()) { |
@@ -31,6 +31,9 @@ |
||
31 | 31 | file_put_contents(self::$usersFile, '<?php return ' . \vtlib\Functions::varExportMin($users) . ';'); |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $type |
|
36 | + */ |
|
34 | 37 | public static function getUser($type) |
35 | 38 | { |
36 | 39 | if (self::$usersFileCache === false) { |
@@ -206,6 +206,9 @@ discard block |
||
206 | 206 | } |
207 | 207 | /* Mailhide related code */ |
208 | 208 | |
209 | +/** |
|
210 | + * @param string $ky |
|
211 | + */ |
|
209 | 212 | function _recaptcha_aes_encrypt($val, $ky) |
210 | 213 | { |
211 | 214 | if (!function_exists("mcrypt_encrypt")) { |
@@ -217,6 +220,9 @@ discard block |
||
217 | 220 | return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); |
218 | 221 | } |
219 | 222 | |
223 | +/** |
|
224 | + * @param null|string $x |
|
225 | + */ |
|
220 | 226 | function _recaptcha_mailhide_urlbase64($x) |
221 | 227 | { |
222 | 228 | return strtr(base64_encode($x), '+/', '-_'); |
@@ -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; |