@@ -164,6 +164,7 @@ discard block |
||
164 | 164 | * When a child of the source item is not found in the destination item, |
165 | 165 | * the search stops, the mapping is (obviously) not done and the source |
166 | 166 | * child and its future brothers are discared. |
167 | + * @param Docman_Folder $dstItem |
|
167 | 168 | */ |
168 | 169 | function compareFolderChildren($srcItem, $dstItem) { |
169 | 170 | $nodesToInspect = array(); |
@@ -210,6 +211,7 @@ discard block |
||
210 | 211 | |
211 | 212 | /** |
212 | 213 | * Search if there is an equivalent of $item in $parentId. |
214 | + * @param integer $parentId |
|
213 | 215 | */ |
214 | 216 | function searchMatchingItem($item, $parentId) { |
215 | 217 | $dao =& $this->getItemDao(); |
@@ -228,6 +228,9 @@ |
||
228 | 228 | } |
229 | 229 | } |
230 | 230 | |
231 | + /** |
|
232 | + * @param string $mdLabel |
|
233 | + */ |
|
231 | 234 | function _metadataEnabled($srcGroupId, $mdLabel) { |
232 | 235 | if(!isset($this->_cacheMetadataUsage[$mdLabel])) { |
233 | 236 | $srcSettingsBo =& $this->_getSettingsBo($srcGroupId); |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Wrapper to i18n string call for docman. |
127 | 127 | * static |
128 | + * @param string $key |
|
128 | 129 | */ |
129 | 130 | function txt($key, $vars = array()) { |
130 | 131 | return $GLOBALS['Language']->getText('plugin_docman', $key, $vars); |
@@ -147,6 +148,9 @@ discard block |
||
147 | 148 | } |
148 | 149 | } |
149 | 150 | |
151 | + /** |
|
152 | + * @param integer $srcGroupId |
|
153 | + */ |
|
150 | 154 | function _cloneDocman($srcGroupId, $dstGroupId, $ugroupsMapping) { |
151 | 155 | $user = $this->getUser(); |
152 | 156 | |
@@ -1550,6 +1554,9 @@ discard block |
||
1550 | 1554 | } |
1551 | 1555 | } |
1552 | 1556 | |
1557 | + /** |
|
1558 | + * @param string $name |
|
1559 | + */ |
|
1553 | 1560 | function getProperty($name) { |
1554 | 1561 | $info =& $this->plugin->getPluginInfo(); |
1555 | 1562 | return $info->getPropertyValueForName($name); |
@@ -1647,6 +1654,7 @@ discard block |
||
1647 | 1654 | * Checks that the new property have a non-empty name, |
1648 | 1655 | * and also checks that the same name is not already taken by |
1649 | 1656 | * another property |
1657 | + * @param string $name |
|
1650 | 1658 | */ |
1651 | 1659 | private function validateNewMetadata($name) { |
1652 | 1660 | $name = trim($name); |
@@ -1671,6 +1679,7 @@ discard block |
||
1671 | 1679 | * Checks that the updating property have a non-empty name, |
1672 | 1680 | * and if the name have been changed, also checks that the same |
1673 | 1681 | * name is not already taken by another property |
1682 | + * @param string $name |
|
1674 | 1683 | */ |
1675 | 1684 | private function validateUpdateMetadata($name, $label) { |
1676 | 1685 | $name = trim($name); |
@@ -1697,6 +1706,9 @@ discard block |
||
1697 | 1706 | return $valid; |
1698 | 1707 | } |
1699 | 1708 | |
1709 | + /** |
|
1710 | + * @param integer $loveId |
|
1711 | + */ |
|
1700 | 1712 | function validateLove($loveId, $md, &$love) { |
1701 | 1713 | $valid = false; |
1702 | 1714 |
@@ -66,6 +66,7 @@ discard block |
||
66 | 66 | * the url sent to the project admin will be edited to "https://codendi.org/plugins/docman/?group_id=1564&action=details§ion=permissions&id=96739" |
67 | 67 | * |
68 | 68 | * @parameter String $url |
69 | + * @param string $url |
|
69 | 70 | * |
70 | 71 | * @return String |
71 | 72 | */ |
@@ -106,7 +107,7 @@ discard block |
||
106 | 107 | * |
107 | 108 | * @param String $url The URL |
108 | 109 | * |
109 | - * @return Array |
|
110 | + * @return Project |
|
110 | 111 | */ |
111 | 112 | function urlQueryToArray($url) { |
112 | 113 | $params = array(); |
@@ -165,6 +166,7 @@ discard block |
||
165 | 166 | /** |
166 | 167 | * Wrapper for Docman_PermissionManager |
167 | 168 | * |
169 | + * @param integer $groupId |
|
168 | 170 | * @return Docman_PermissionsManager |
169 | 171 | */ |
170 | 172 | function _getPermissionManagerInstance($groupId) { |
@@ -174,6 +176,7 @@ discard block |
||
174 | 176 | /** |
175 | 177 | * Wrapper for Docman_ItemFactory |
176 | 178 | * |
179 | + * @param integer $groupId |
|
177 | 180 | * @return Docman_ItemFactory |
178 | 181 | */ |
179 | 182 | function _getItemFactoryInstance($groupId) { |
@@ -30,9 +30,17 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | var $currentVersion; |
33 | + |
|
34 | + /** |
|
35 | + * @param Docman_Version $currentVersion |
|
36 | + */ |
|
33 | 37 | function setCurrentVersion(&$currentVersion) { |
34 | 38 | $this->currentVersion =& $currentVersion; |
35 | 39 | } |
40 | + |
|
41 | + /** |
|
42 | + * @return Docman_Version |
|
43 | + */ |
|
36 | 44 | function &getCurrentVersion() { |
37 | 45 | return $this->currentVersion; |
38 | 46 | } |
@@ -42,6 +50,9 @@ discard block |
||
42 | 50 | return $row; |
43 | 51 | } |
44 | 52 | |
53 | + /** |
|
54 | + * @param Docman_Widget_Embedded $visitor |
|
55 | + */ |
|
45 | 56 | function accept(&$visitor, $params = array()) { |
46 | 57 | return $visitor->visitFile($this, $params); |
47 | 58 | } |
@@ -71,6 +71,10 @@ |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $dst_name |
|
76 | + * @param integer $dst_version_number |
|
77 | + */ |
|
74 | 78 | function copy($srcPath, $dst_name, $dst_group_id, $dst_item_id, $dst_version_number) { |
75 | 79 | $dstPath = $this->_getPath($dst_name, $dst_group_id, $dst_item_id, $dst_version_number); |
76 | 80 |
@@ -460,6 +460,9 @@ |
||
460 | 460 | class Docman_FilterGlobalText extends Docman_FilterText { |
461 | 461 | var $dynTextFields; |
462 | 462 | |
463 | + /** |
|
464 | + * @param Docman_Metadata $md |
|
465 | + */ |
|
463 | 466 | function Docman_FilterGlobalText($md, $dynTextFields) { |
464 | 467 | parent::Docman_FilterText($md); |
465 | 468 | $this->dynTextFields = $dynTextFields; |
@@ -220,6 +220,9 @@ |
||
220 | 220 | return $filter; |
221 | 221 | } |
222 | 222 | |
223 | + /** |
|
224 | + * @param Docman_ListMetadata $md |
|
225 | + */ |
|
223 | 226 | function createItemTypeFilter($md, $advSearch) { |
224 | 227 | if ($advSearch) { |
225 | 228 | $f = new Docman_FilterItemTypeAdvanced($md); |
@@ -36,6 +36,7 @@ |
||
36 | 36 | * existing function that handle prefences in this way. |
37 | 37 | * |
38 | 38 | * @param Folder |
39 | + * @param Docman_Folder $folder |
|
39 | 40 | */ |
40 | 41 | function collapse($folder) { |
41 | 42 | user_del_preference(PLUGIN_DOCMAN_EXPAND_FOLDER_PREF.'_'.$folder->getGroupId().'_'.$folder->getId()); |