@@ -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){ |
@@ -24,6 +24,9 @@ |
||
24 | 24 | require_once('Docman_Widget_Embedded.class.php'); |
25 | 25 | class Docman_Widget_ProjectEmbedded extends Docman_Widget_Embedded { |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $plugin_path |
|
29 | + */ |
|
27 | 30 | public function __construct($plugin_path) { |
28 | 31 | parent::__construct('plugin_docman_project_embedded', |
29 | 32 | HTTPRequest::instance()->get('group_id'), |
@@ -49,6 +49,9 @@ |
||
49 | 49 | return $row; |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param Docman_Widget_Embedded $visitor |
|
54 | + */ |
|
52 | 55 | function accept(&$visitor, $params = array()) { |
53 | 56 | return $visitor->visitWiki($this, $params); |
54 | 57 | } |
@@ -356,6 +356,9 @@ discard block |
||
356 | 356 | } |
357 | 357 | } |
358 | 358 | |
359 | + /** |
|
360 | + * @param string $referrer_id |
|
361 | + */ |
|
359 | 362 | function showReferrerPath($referrer_id, $group_id) { |
360 | 363 | $parents = array(); |
361 | 364 | $html = HTML(); |
@@ -390,6 +393,9 @@ discard block |
||
390 | 393 | return $html; |
391 | 394 | } |
392 | 395 | |
396 | + /** |
|
397 | + * @param string $referrer_id |
|
398 | + */ |
|
393 | 399 | function getDocumentPath($id, $group_id, $referrer_id = null) { |
394 | 400 | $parents = array(); |
395 | 401 | $html = HTML(); |
@@ -603,6 +603,9 @@ discard block |
||
603 | 603 | $params['html'][]= $html; |
604 | 604 | } |
605 | 605 | |
606 | + /** |
|
607 | + * @param integer $limit |
|
608 | + */ |
|
606 | 609 | function showPendingVersions($versions, $groupId, $nbVersions, $offset, $limit) { |
607 | 610 | $hp = Codendi_HTMLPurifier::instance(); |
608 | 611 | |
@@ -656,6 +659,9 @@ discard block |
||
656 | 659 | return $html; |
657 | 660 | } |
658 | 661 | |
662 | + /** |
|
663 | + * @param integer $limit |
|
664 | + */ |
|
659 | 665 | function showPendingItems($res, $groupId, $nbItems, $offset, $limit) { |
660 | 666 | $hp = Codendi_HTMLPurifier::instance(); |
661 | 667 | require_once('Docman_ItemFactory.class.php'); |
@@ -831,6 +837,9 @@ discard block |
||
831 | 837 | ); |
832 | 838 | } |
833 | 839 | |
840 | + /** |
|
841 | + * @param Docman_WikiRequest $request |
|
842 | + */ |
|
834 | 843 | protected function getWikiController($request) { |
835 | 844 | return $this->getController('Docman_WikiController', $request); |
836 | 845 | } |
@@ -842,6 +851,9 @@ discard block |
||
842 | 851 | return $this->getController('Docman_HTTPController', $request); |
843 | 852 | } |
844 | 853 | |
854 | + /** |
|
855 | + * @param Codendi_Request $request |
|
856 | + */ |
|
845 | 857 | protected function getCoreController($request) { |
846 | 858 | return $this->getController('Docman_CoreController', $request); |
847 | 859 | } |
@@ -850,6 +862,9 @@ discard block |
||
850 | 862 | return $this->getController('Docman_SOAPController', $request); |
851 | 863 | } |
852 | 864 | |
865 | + /** |
|
866 | + * @param string $controller |
|
867 | + */ |
|
853 | 868 | protected function getController($controller, $request) { |
854 | 869 | if (!isset($this->controller[$controller])) { |
855 | 870 | include_once $controller.'.class.php'; |
@@ -25,6 +25,9 @@ discard block |
||
25 | 25 | |
26 | 26 | class DocmanPluginInfo extends PluginInfo { |
27 | 27 | |
28 | + /** |
|
29 | + * @param DocmanPlugin $plugin |
|
30 | + */ |
|
28 | 31 | function DocmanPluginInfo(&$plugin) { |
29 | 32 | $this->PluginInfo($plugin); |
30 | 33 | $this->setPluginDescriptor(new DocmanPluginDescriptor($plugin)); |
@@ -82,6 +85,11 @@ discard block |
||
82 | 85 | } |
83 | 86 | } |
84 | 87 | |
88 | + /** |
|
89 | + * @param string $name |
|
90 | + * |
|
91 | + * @return string |
|
92 | + */ |
|
85 | 93 | function getPropertyValueForName($name) { |
86 | 94 | $desc = $this->getPropertyDescriptorForName($name); |
87 | 95 | return $desc ? $desc->getValue() : $desc; |