@@ -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'; |
@@ -300,6 +300,7 @@ discard block |
||
300 | 300 | * @param string $sessionKey Session Key |
301 | 301 | * @param int $group_id Group ID |
302 | 302 | * @param array $params Request parameters |
303 | + * @param string $action |
|
303 | 304 | * @return unknown Request response |
304 | 305 | */ |
305 | 306 | function _makeDocmanRequest($sessionKey, $group_id, $action, $params = array()) { |
@@ -380,7 +381,6 @@ discard block |
||
380 | 381 | * @param string $description Description |
381 | 382 | * @param string $ordering Ordering (begin, end) |
382 | 383 | * @param string $status Status (none, draft, approved, rejected) |
383 | - * @param string $obsolescence_date Obsolescence date |
|
384 | 384 | * @param string $type Type (folder, file, embedded_file, link, empty, wiki) |
385 | 385 | * @param Array $permissions Permissions |
386 | 386 | * @param Array $metadata Metadata values |
@@ -400,6 +400,7 @@ discard block |
||
400 | 400 | |
401 | 401 | /** |
402 | 402 | * Creates a docman document |
403 | + * @param integer $type |
|
403 | 404 | */ |
404 | 405 | function _createDocmanDocument($sessionKey, $group_id, $parent_id, $title, $description, $ordering, $status, $obsolescence_date, $type, $permissions, $metadata, $owner, $create_date, $update_date, $extraParams = array()) { |
405 | 406 | if ($obsolescence_date !== null) $extraParams['item']['obsolescence_date'] = $obsolescence_date; |
@@ -429,6 +430,7 @@ discard block |
||
429 | 430 | |
430 | 431 | /** |
431 | 432 | * Updates a docman document |
433 | + * @param integer $type |
|
432 | 434 | */ |
433 | 435 | function _updateDocmanDocument($sessionKey, $group_id, $item_id, $title, $description, $status, $obsolescence_date, $type, $permissions, $metadata, $owner, $create_date, $update_date, $extraParams = array()) { |
434 | 436 | if ($obsolescence_date !== null) { |
@@ -65,6 +65,7 @@ |
||
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @throws Docman_FolderNotCreatedException |
68 | + * @param string $folder_path |
|
68 | 69 | */ |
69 | 70 | private function createFolderWithRightAccessRights($folder_path, $project_unix_name) { |
70 | 71 | if (! mkdir($folder_path)) { |
@@ -30,6 +30,9 @@ |
||
30 | 30 | return $GLOBALS['Language']->getText('plugin_docman', 'details_title', $hp->purify($params['item']->getTitle(), CODENDI_PURIFIER_CONVERT_HTML) ); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $section |
|
35 | + */ |
|
33 | 36 | function _content($params, $view = null, $section = null) { |
34 | 37 | $url = $params['default_url']; |
35 | 38 |
@@ -10,6 +10,10 @@ |
||
10 | 10 | |
11 | 11 | class Docman_View_GetMenuItemsVisitor /* implements Visitor*/ { |
12 | 12 | var $actions; |
13 | + |
|
14 | + /** |
|
15 | + * @param integer $groupId |
|
16 | + */ |
|
13 | 17 | function Docman_View_GetMenuItemsVisitor(&$user, $groupId) { |
14 | 18 | $this->dPm =& Docman_PermissionsManager::instance($groupId); |
15 | 19 | $this->user =& $user; |
@@ -28,6 +28,11 @@ |
||
28 | 28 | var $is_moveable; |
29 | 29 | var $is_deleteable; |
30 | 30 | var $_controller; |
31 | + |
|
32 | + /** |
|
33 | + * @param boolean $is_moveable |
|
34 | + * @param boolean $is_deleteable |
|
35 | + */ |
|
31 | 36 | function Docman_View_ItemDetailsSectionActions(&$item, $url, $is_moveable, $is_deleteable, &$controller) { |
32 | 37 | $this->is_moveable = $is_moveable; |
33 | 38 | $this->is_deleteable = $is_deleteable; |
@@ -250,6 +250,9 @@ |
||
250 | 250 | return $version; |
251 | 251 | } |
252 | 252 | |
253 | + /** |
|
254 | + * @param PFUser $user |
|
255 | + */ |
|
253 | 256 | function getReviewForm($user) { |
254 | 257 | $html = ''; |
255 | 258 | $uh = UserHelper::instance(); |