@@ -31,6 +31,9 @@ |
||
31 | 31 | $this->groupId = $groupId; |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $colLabel |
|
36 | + */ |
|
34 | 37 | function getColumnFromLabel($colLabel) { |
35 | 38 | $col = null; |
36 | 39 | $mdFactory = $this->_getMetadataFactory(); |
@@ -36,6 +36,8 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Create a report for table view based on URL |
39 | + * @param integer|null $reportId |
|
40 | + * @param boolean $feedback |
|
39 | 41 | */ |
40 | 42 | function &get($reportId, $request, $item, &$feedback) { |
41 | 43 | $report = null; |
@@ -263,6 +265,9 @@ discard block |
||
263 | 265 | return $rai; |
264 | 266 | } |
265 | 267 | |
268 | + /** |
|
269 | + * @param PFUser $user |
|
270 | + */ |
|
266 | 271 | function getPersonalReportsForUser($user) { |
267 | 272 | $ra = array(); |
268 | 273 | $dao =& $this->getDao(); |
@@ -336,6 +341,9 @@ discard block |
||
336 | 341 | return false; |
337 | 342 | } |
338 | 343 | |
344 | + /** |
|
345 | + * @param Docman_Report $report |
|
346 | + */ |
|
339 | 347 | function deleteReport($report) { |
340 | 348 | $dao =& $this->getDao(); |
341 | 349 | $filterFactory = new Docman_FilterFactory($this->groupId); |
@@ -49,6 +49,9 @@ |
||
49 | 49 | return $html; |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param ArrayIterator $reportIter |
|
54 | + */ |
|
52 | 55 | function getSelectOptionFromReportIterator($reportIter, $current=null) { |
53 | 56 | $html = ''; |
54 | 57 | $reportIter->rewind(); |
@@ -108,6 +108,9 @@ discard block |
||
108 | 108 | return $dao->updateMetadataUsageForGroupId($this->groupId, $label, $useIt); |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param integer $targetGroupId |
|
113 | + */ |
|
111 | 114 | function cloneMetadataSettings($targetGroupId) { |
112 | 115 | if($this->settingsExist()) { |
113 | 116 | $dao =& $this->getDao(); |
@@ -136,6 +139,8 @@ discard block |
||
136 | 139 | |
137 | 140 | /** |
138 | 141 | * @access: private |
142 | + * @param Docman_SettingsBo $srcBo |
|
143 | + * @param string $label |
|
139 | 144 | */ |
140 | 145 | function _importMetadataUsage($srcBo, $label) { |
141 | 146 | if($srcBo->getMetadataUsage($label) == true && |
@@ -31,6 +31,9 @@ |
||
31 | 31 | var $docCounter; |
32 | 32 | var $fldCounter; |
33 | 33 | |
34 | + /** |
|
35 | + * @param integer $groupId |
|
36 | + */ |
|
34 | 37 | function Docman_SubItemsWritableVisitor($groupId, $user) { |
35 | 38 | $this->dpm =& Docman_PermissionsManager::instance($groupId); |
36 | 39 | $this->user = $user; |
@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Searches Docman_Token by Url |
31 | + * @param integer $user_id |
|
31 | 32 | * @return DataAccessResult |
32 | 33 | */ |
33 | 34 | function searchUrl($user_id, $token) { |
@@ -39,7 +40,9 @@ discard block |
||
39 | 40 | |
40 | 41 | /** |
41 | 42 | * create a row in the table plugin_docman_tokens |
42 | - * @return true or id(auto_increment) if there is no error |
|
43 | + * @param integer $user_id |
|
44 | + * @param string $token |
|
45 | + * @return boolean or id(auto_increment) if there is no error |
|
43 | 46 | */ |
44 | 47 | function create($user_id, $token, $url) { |
45 | 48 | $sql = sprintf("INSERT INTO plugin_docman_tokens (user_id, token, url, created_at) VALUES (%s, %s, %s, NOW())", |
@@ -53,6 +56,7 @@ discard block |
||
53 | 56 | |
54 | 57 | /** |
55 | 58 | * delete a row in the table plugin_docman_tokens |
59 | + * @param integer $user_id |
|
56 | 60 | */ |
57 | 61 | function delete($user_id, $token) { |
58 | 62 | $sql = sprintf("DELETE FROM plugin_docman_tokens WHERE (TO_DAYS(NOW()) - TO_DAYS(created_at)) > 1 OR (user_id = %s AND token = %s)", |
@@ -212,6 +212,10 @@ |
||
212 | 212 | return false; |
213 | 213 | } |
214 | 214 | } |
215 | + |
|
216 | + /** |
|
217 | + * @param string $sql |
|
218 | + */ |
|
215 | 219 | function _createAndReturnId($sql) { |
216 | 220 | $inserted = $this->update($sql); |
217 | 221 | if ($inserted) { |
@@ -23,6 +23,10 @@ |
||
23 | 23 | */ |
24 | 24 | class Docman_Widget_MyDocman extends Widget { |
25 | 25 | var $pluginPath; |
26 | + |
|
27 | + /** |
|
28 | + * @param string $pluginPath |
|
29 | + */ |
|
26 | 30 | function Docman_Widget_MyDocman($pluginPath) { |
27 | 31 | $this->Widget('plugin_docman_mydocman'); |
28 | 32 | $this->pluginPath = $pluginPath; |
@@ -25,6 +25,9 @@ discard block |
||
25 | 25 | |
26 | 26 | var $pluginPath; |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $pluginPath |
|
30 | + */ |
|
28 | 31 | function __construct($pluginPath) { |
29 | 32 | parent::__construct('plugin_docman_mydocman_search'); |
30 | 33 | $this->_pluginPath = $pluginPath; |
@@ -94,7 +97,7 @@ discard block |
||
94 | 97 | * else 0 |
95 | 98 | * |
96 | 99 | * @param $docman_id int Document Id |
97 | - * @param $user User User Id |
|
100 | + * @param PFUser $user User User Id |
|
98 | 101 | * @return group_id |
99 | 102 | **/ |
100 | 103 | function returnAllowedGroupId($docman_id, $user){ |