@@ -98,6 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | + * @param integer $version_number |
|
101 | 102 | * @return Docman_Version |
102 | 103 | */ |
103 | 104 | protected function getVersion(Docman_Item $item, $version_number) { |
@@ -120,6 +121,11 @@ discard block |
||
120 | 121 | return $txt; |
121 | 122 | } |
122 | 123 | |
124 | + /** |
|
125 | + * @param integer $group_id |
|
126 | + * @param integer $item_id |
|
127 | + * @param boolean $with_link |
|
128 | + */ |
|
123 | 129 | private function verbalizeDocmanItemId($group_id, $item_id, $with_link) { |
124 | 130 | $txt = '#'. $item_id; |
125 | 131 | if ($with_link) { |
@@ -33,7 +33,8 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @return Docman_Version |
|
36 | + * @param integer $version_number |
|
37 | + * @return null|Docman_LinkVersion |
|
37 | 38 | */ |
38 | 39 | private function getLinkVersion(Docman_Link $item, $version_number) { |
39 | 40 | return $this->link_version_factory->getSpecificVersion($item, $version_number); |
@@ -37,6 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | + * @param integer $project_id |
|
40 | 41 | * @return WikiPage |
41 | 42 | */ |
42 | 43 | protected function getWikiPage(Docman_Item $item, $project_id) { |
@@ -37,6 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | + * @param integer $project_id |
|
40 | 41 | * @return WikiPage |
41 | 42 | */ |
42 | 43 | protected function getWikiPage(Docman_Item $item, $project_id) { |
@@ -55,6 +55,10 @@ discard block |
||
55 | 55 | return false; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param integer $group_id |
|
60 | + * @param string $wiki_page_name |
|
61 | + */ |
|
58 | 62 | protected function getWikiPage($group_id, $wiki_page_name) { |
59 | 63 | return new WikiPage($group_id, $wiki_page_name); |
60 | 64 | } |
@@ -65,6 +69,7 @@ discard block |
||
65 | 69 | * @see process() |
66 | 70 | * |
67 | 71 | * @param WikiPage $wiki_page The wiki page |
72 | + * @param integer $group_id |
|
68 | 73 | * |
69 | 74 | * @return bool true if success (means status=done), false otherwise |
70 | 75 | */ |
@@ -82,6 +87,11 @@ discard block |
||
82 | 87 | return $txt; |
83 | 88 | } |
84 | 89 | |
90 | + /** |
|
91 | + * @param integer $group_id |
|
92 | + * @param string $wiki_page_name |
|
93 | + * @param boolean $with_link |
|
94 | + */ |
|
85 | 95 | private function verbalizeWikiPageId($group_id, $wiki_page_name, $with_link) { |
86 | 96 | if ($with_link) { |
87 | 97 | $txt = '<a href="/wiki/index.php?group_id='. $group_id .'&pagename='. $wiki_page_name.'">'. $wiki_page_name .'</a>'; |
@@ -45,26 +45,41 @@ |
||
45 | 45 | return $docman_file; |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param integer $item_id |
|
50 | + */ |
|
48 | 51 | public function withId($item_id) { |
49 | 52 | $this->item_id = $item_id; |
50 | 53 | return $this; |
51 | 54 | } |
52 | 55 | |
56 | + /** |
|
57 | + * @param integer $group_id |
|
58 | + */ |
|
53 | 59 | public function withGroupId($group_id) { |
54 | 60 | $this->group_id = $group_id; |
55 | 61 | return $this; |
56 | 62 | } |
57 | 63 | |
64 | + /** |
|
65 | + * @param integer $owner_id |
|
66 | + */ |
|
58 | 67 | public function withOwnerId($owner_id) { |
59 | 68 | $this->owner_id = $owner_id; |
60 | 69 | return $this; |
61 | 70 | } |
62 | 71 | |
72 | + /** |
|
73 | + * @param string $title |
|
74 | + */ |
|
63 | 75 | public function withTitle($title) { |
64 | 76 | $this->title = $title; |
65 | 77 | return $this; |
66 | 78 | } |
67 | 79 | |
80 | + /** |
|
81 | + * @param string $description |
|
82 | + */ |
|
68 | 83 | public function withDescription($description) { |
69 | 84 | $this->description = $description; |
70 | 85 | return $this; |
@@ -27,6 +27,9 @@ |
||
27 | 27 | $this->actions = mock('FullTextSearchDocmanActions'); |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param string $parameters |
|
32 | + */ |
|
30 | 33 | public function aSystemEventWithParameter($parameters) { |
31 | 34 | $id = $type = $owner = $priority = $status = $create_date = $process_date = $end_date = $log = null; |
32 | 35 | $event = new SystemEvent_FULLTEXTSEARCH_DOCMAN_REINDEX_PROJECT( |
@@ -25,6 +25,9 @@ |
||
25 | 25 | |
26 | 26 | protected $klass = 'SystemEvent_FULLTEXTSEARCH_DOCMAN_WIKI_INDEX'; |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $parameters |
|
30 | + */ |
|
28 | 31 | public function aSystemEventWithParameter($parameters) { |
29 | 32 | $id = $type = $owner = $priority = $status = $create_date = $process_date = $end_date = $log = null; |
30 | 33 | $event = partial_mock( |
@@ -25,6 +25,9 @@ |
||
25 | 25 | |
26 | 26 | protected $klass = 'SystemEvent_FULLTEXTSEARCH_DOCMAN_WIKI_UPDATE'; |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $parameters |
|
30 | + */ |
|
28 | 31 | public function aSystemEventWithParameter($parameters) { |
29 | 32 | $id = $type = $owner = $priority = $status = $create_date = $process_date = $end_date = $log = null; |
30 | 33 | $event = partial_mock( |