@@ -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()); |
@@ -78,6 +78,9 @@ |
||
78 | 78 | return $html; |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $formName |
|
83 | + */ |
|
81 | 84 | function toHtml($formName, $trashLinkBase) { |
82 | 85 | $trashLink = ''; |
83 | 86 | if($trashLinkBase) { |
@@ -25,10 +25,17 @@ discard block |
||
25 | 25 | */ |
26 | 26 | class Docman_Icons { |
27 | 27 | var $images_path; |
28 | + |
|
29 | + /** |
|
30 | + * @param string $images_path |
|
31 | + */ |
|
28 | 32 | function Docman_Icons($images_path) { |
29 | 33 | $this->images_path = $images_path; |
30 | 34 | } |
31 | 35 | |
36 | + /** |
|
37 | + * @param string $action |
|
38 | + */ |
|
32 | 39 | function getActionIcon($action) { |
33 | 40 | switch ($action) { |
34 | 41 | case 'popup': |
@@ -186,10 +193,17 @@ discard block |
||
186 | 193 | function getSpinner() { |
187 | 194 | return $this->images_path . 'spinner.gif'; |
188 | 195 | } |
196 | + |
|
197 | + /** |
|
198 | + * @param string $icon |
|
199 | + */ |
|
189 | 200 | function getIcon($icon) { |
190 | 201 | return $this->images_path . $icon; |
191 | 202 | } |
192 | 203 | |
204 | + /** |
|
205 | + * @param string $icon |
|
206 | + */ |
|
193 | 207 | function getThemeIcon($icon) { |
194 | 208 | return util_get_image_theme('ic/'.$icon); |
195 | 209 | } |
@@ -340,6 +340,9 @@ |
||
340 | 340 | return $this->pathTitle; |
341 | 341 | } |
342 | 342 | |
343 | + /** |
|
344 | + * @param string $event |
|
345 | + */ |
|
343 | 346 | public function fireEvent($event, $user, $parent=null) { |
344 | 347 | $params = array('group_id' => $this->getGroupId(), |
345 | 348 | 'parent' => $parent, |