@@ -37,6 +37,8 @@ |
||
37 | 37 | * @param Tracker_FormElement_Field_Date $field The field of the value |
38 | 38 | * @param boolean $has_changed If the changeset value has chnged from the previous one |
39 | 39 | * @param array $perms The permissions |
40 | + * @param integer $id |
|
41 | + * @param boolean $used |
|
40 | 42 | */ |
41 | 43 | public function __construct($id, $field, $has_changed, $used, $perms) { |
42 | 44 | parent::__construct($id, $field, $has_changed); |
@@ -48,6 +48,7 @@ discard block |
||
48 | 48 | * @param boolean $has_changed If the changeset value has chnged from the previous one |
49 | 49 | * @param string $text The string |
50 | 50 | * @param string $format The format |
51 | + * @param integer $id |
|
51 | 52 | */ |
52 | 53 | public function __construct($id, $field, $has_changed, $text, $format) { |
53 | 54 | parent::__construct($id, $field, $has_changed); |
@@ -92,6 +93,7 @@ discard block |
||
92 | 93 | |
93 | 94 | /** |
94 | 95 | * By default, changeset values are returned as string in 'value' field |
96 | + * @param string $value |
|
95 | 97 | */ |
96 | 98 | protected function encapsulateRawSoapValue($value) { |
97 | 99 | $value = Encoding_SupportedXmlCharEncoding::getXMLCompatibleString($value); |
@@ -108,6 +110,9 @@ discard block |
||
108 | 110 | return $this->getFullRESTRepresentation($this->getText()); |
109 | 111 | } |
110 | 112 | |
113 | + /** |
|
114 | + * @param string $value |
|
115 | + */ |
|
111 | 116 | protected function getFullRESTRepresentation($value) { |
112 | 117 | $classname_with_namespace = 'Tuleap\Tracker\REST\Artifact\ArtifactFieldValueTextRepresentation'; |
113 | 118 | |
@@ -180,6 +185,7 @@ discard block |
||
180 | 185 | } |
181 | 186 | |
182 | 187 | /** |
188 | + * @param string $formated_diff |
|
183 | 189 | * @return string text to be displayed in mail notifications when the text has been changed |
184 | 190 | */ |
185 | 191 | protected function fetchHtmlMailDiff($formated_diff, $artifact_id, $changeset_id) { |
@@ -214,6 +220,7 @@ discard block |
||
214 | 220 | /** |
215 | 221 | * Display the diff in changeset |
216 | 222 | * |
223 | + * @param string $format |
|
217 | 224 | * @return string The text to display |
218 | 225 | */ |
219 | 226 | public function fetchDiff($previous, $next, $format) { |
@@ -242,6 +249,7 @@ discard block |
||
242 | 249 | } |
243 | 250 | |
244 | 251 | /** |
252 | + * @param string $formated_diff |
|
245 | 253 | * @return string text to be displayed in web ui when the text has been changed |
246 | 254 | */ |
247 | 255 | protected function fetchDiffInFollowUp($formated_diff) { |
@@ -27,6 +27,10 @@ |
||
27 | 27 | $this->artifact_factory = $artifact_factory; |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param integer $limit |
|
32 | + * @param integer $offset |
|
33 | + */ |
|
30 | 34 | public function getPossibleArtifactParents(Tracker $parent_tracker, PFUser $user, $limit, $offset) { |
31 | 35 | $label = ''; |
32 | 36 | $possible_parents = array(); |
@@ -71,6 +71,9 @@ |
||
71 | 71 | private $prioritized_on; |
72 | 72 | |
73 | 73 | |
74 | + /** |
|
75 | + * @param boolean $has_been_raised |
|
76 | + */ |
|
74 | 77 | public function __construct( |
75 | 78 | Tracker_ArtifactFactory $tracker_artifact_factory, |
76 | 79 | $id, |
@@ -83,6 +83,12 @@ discard block |
||
83 | 83 | $this->priority_dao->moveArtifactBefore($artifact_id, $successor_id); |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param integer $artifact_id |
|
88 | + * @param integer $successor_id |
|
89 | + * @param integer $context_id |
|
90 | + * @param integer $project_id |
|
91 | + */ |
|
86 | 92 | public function moveArtifactBeforeWithHistoryChangeLogging($artifact_id, $successor_id, $context_id, $project_id) { |
87 | 93 | $old_global_rank = $this->getGlobalRank($artifact_id); |
88 | 94 | $this->priority_dao->moveArtifactBefore($artifact_id, $successor_id); |
@@ -107,6 +113,9 @@ discard block |
||
107 | 113 | } |
108 | 114 | } |
109 | 115 | |
116 | + /** |
|
117 | + * @param integer $successor_id |
|
118 | + */ |
|
110 | 119 | public function moveListOfArtifactsBefore(array $list_of_artifact_ids, $successor_id, $context_id, $project_id) { |
111 | 120 | $ranks_before_move = $this->getGlobalRanks($list_of_artifact_ids); |
112 | 121 | |
@@ -132,6 +141,9 @@ discard block |
||
132 | 141 | } |
133 | 142 | } |
134 | 143 | |
144 | + /** |
|
145 | + * @param integer $predecessor_id |
|
146 | + */ |
|
135 | 147 | public function moveListOfArtifactsAfter(array $list_of_artifact_ids, $predecessor_id, $context_id, $project_id) { |
136 | 148 | $ranks_before_move = $this->getGlobalRanks($list_of_artifact_ids); |
137 | 149 | |
@@ -157,6 +169,9 @@ discard block |
||
157 | 169 | } |
158 | 170 | } |
159 | 171 | |
172 | + /** |
|
173 | + * @param integer $rank_after_move |
|
174 | + */ |
|
160 | 175 | private function didArtifactRankChange($rank_before_move, $rank_after_move) { |
161 | 176 | return $rank_after_move !== $rank_before_move; |
162 | 177 | } |
@@ -49,6 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Add an artefact in the tracker |
51 | 51 | * |
52 | + * @param boolean $send_notification |
|
52 | 53 | * @return Tracker_Artifact or false if an error occured |
53 | 54 | */ |
54 | 55 | public function create( |
@@ -59,7 +59,6 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Allows clear factory instance for test. DO NOT USE IT IN PRODUCTION! |
61 | 61 | * |
62 | - * @param Tracker_ArtifactFactory $factory |
|
63 | 62 | */ |
64 | 63 | public static function clearInstance() { |
65 | 64 | self::$instance = null; |
@@ -118,6 +117,7 @@ discard block |
||
118 | 117 | * @param int $tracker_id The id of the tracker |
119 | 118 | * @param int $limit The maximum number of artifacts returned |
120 | 119 | * @param int $offset |
120 | + * @param boolean $reverse_order |
|
121 | 121 | * |
122 | 122 | * @return Tracker_Artifact_PaginatedArtifacts |
123 | 123 | */ |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * |
184 | 184 | * @param PFUser $user |
185 | - * @param type $tracker_id |
|
185 | + * @param integer $tracker_id |
|
186 | 186 | * @param type $limit |
187 | 187 | * @param type $offset |
188 | 188 | * @return Tracker_Artifact_PaginatedArtifacts |
@@ -200,6 +200,9 @@ discard block |
||
200 | 200 | return new Tracker_Artifact_PaginatedArtifacts($artifacts, $size); |
201 | 201 | } |
202 | 202 | |
203 | + /** |
|
204 | + * @param integer $tracker_id |
|
205 | + */ |
|
203 | 206 | public function getClosedArtifactsByTrackerIdUserCanView(PFUser $user, $tracker_id) { |
204 | 207 | $artifacts = array(); |
205 | 208 | foreach ($this->getDao()->searchClosedByTrackerId($tracker_id) as $row) { |
@@ -380,7 +383,7 @@ discard block |
||
380 | 383 | } |
381 | 384 | |
382 | 385 | /** |
383 | - * @return Tracker_Artifact[] |
|
386 | + * @return DataAccessResult |
|
384 | 387 | */ |
385 | 388 | public function getLinkedArtifacts(Tracker_Artifact $artifact) { |
386 | 389 | return $this->getDao()->getLinkedArtifacts($artifact->getId())->instanciateWith(array($this, 'getInstanceFromRow')); |
@@ -123,7 +123,6 @@ discard block |
||
123 | 123 | /** |
124 | 124 | * Returns HTML code to display the artifact follow-up comments |
125 | 125 | * |
126 | - * @param PFUser $current_user the current user |
|
127 | 126 | * |
128 | 127 | * @return string The HTML code for artifact follow-up comments |
129 | 128 | */ |
@@ -200,7 +199,7 @@ discard block |
||
200 | 199 | } |
201 | 200 | |
202 | 201 | /** |
203 | - * @return Tracker_ArtifactByEmailStatus |
|
202 | + * @return boolean |
|
204 | 203 | */ |
205 | 204 | private function canUpdateArtifactByMail() { |
206 | 205 | $config = new TrackerPluginConfig( |
@@ -44,6 +44,9 @@ |
||
44 | 44 | /** @var WrapperLogger */ |
45 | 45 | private $logger; |
46 | 46 | |
47 | + /** |
|
48 | + * @param boolean $send_notifications |
|
49 | + */ |
|
47 | 50 | public function __construct( |
48 | 51 | XML_RNGValidator $rng_validator, |
49 | 52 | Tracker_ArtifactCreator $artifact_creator, |