@@ -76,6 +76,9 @@ |
||
76 | 76 | return $this->artifact_factory->createArtifact($this->tracker, $fields_data, $user, $email); |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param integer $link_artifact_id |
|
81 | + */ |
|
79 | 82 | private function associateImmediatelyIfNeeded(Tracker_Artifact $new_artifact, $link_artifact_id, $doitnow, PFUser $current_user) { |
80 | 83 | if ($link_artifact_id && $doitnow) { |
81 | 84 | $source_artifact = $this->artifact_factory->getArtifactById($link_artifact_id); |
@@ -94,6 +94,10 @@ |
||
94 | 94 | $this->artifact_dao->createUnsubscribeNotification($this->artifact->getId(), $user->getId()); |
95 | 95 | } |
96 | 96 | |
97 | + /** |
|
98 | + * @param string $feedback_level |
|
99 | + * @param boolean|null $unsubscribe |
|
100 | + */ |
|
97 | 101 | private function sendResponse(Codendi_Request $request, $feedback_level, $message, $unsubscribe) { |
98 | 102 | if ($request->isAjax()) { |
99 | 103 | $this->sendAjaxResponse($unsubscribe, $message); |
@@ -71,6 +71,9 @@ |
||
71 | 71 | return $this->mimetype; |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $size |
|
76 | + */ |
|
74 | 77 | public function setSize($size) { |
75 | 78 | $this->size = $size; |
76 | 79 | } |
@@ -21,6 +21,10 @@ discard block |
||
21 | 21 | |
22 | 22 | class Tracker_Artifact_Attachment_TemporaryFileManagerDao extends DataAccessObject { |
23 | 23 | |
24 | + /** |
|
25 | + * @param integer $user_id |
|
26 | + * @param string $tempname |
|
27 | + */ |
|
24 | 28 | public function create($user_id, $name, $description, $mimetype, $timestamp, $tempname) { |
25 | 29 | $user_id = $this->da->escapeInt($user_id); |
26 | 30 | $name = $this->da->quoteSmart($name); |
@@ -55,6 +59,10 @@ discard block |
||
55 | 59 | return $file_id; |
56 | 60 | } |
57 | 61 | |
62 | + /** |
|
63 | + * @param integer $offset |
|
64 | + * @param string $size |
|
65 | + */ |
|
58 | 66 | public function updateFileInfo($file_id, $offset, $last_modified, $size) { |
59 | 67 | $file_id = $this->da->escapeInt($file_id); |
60 | 68 | $offset = $this->da->escapeInt($offset); |
@@ -117,6 +125,9 @@ discard block |
||
117 | 125 | return $this->update($sql); |
118 | 126 | } |
119 | 127 | |
128 | + /** |
|
129 | + * @param integer $user_id |
|
130 | + */ |
|
120 | 131 | public function getUserTemporaryFiles($user_id) { |
121 | 132 | $user_id = $this->da->escapeInt($user_id); |
122 | 133 |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * @param int $offset |
115 | 115 | * @param int $size |
116 | 116 | * |
117 | - * @return \Tracker_Artifact_Attachment_PermissionDeniedOnFieldException |
|
117 | + * @return string|null |
|
118 | 118 | * |
119 | 119 | * @throws Tracker_Artifact_Attachment_PermissionDeniedOnFieldException |
120 | 120 | * @throws Tracker_Artifact_Attachment_FileNotFoundException |
@@ -20,6 +20,9 @@ discard block |
||
20 | 20 | |
21 | 21 | class Tracker_Artifact_Changeset_IncomingMailDao extends DataAccessObject { |
22 | 22 | |
23 | + /** |
|
24 | + * @param integer $changeset_id |
|
25 | + */ |
|
23 | 26 | public function save($changeset_id, $raw_mail) { |
24 | 27 | $changeset_id = $this->da->escapeInt($changeset_id); |
25 | 28 | $raw_mail = $this->da->quoteSmart($raw_mail); |
@@ -30,6 +33,9 @@ discard block |
||
30 | 33 | return $this->update($sql); |
31 | 34 | } |
32 | 35 | |
36 | + /** |
|
37 | + * @param integer $artifact_id |
|
38 | + */ |
|
33 | 39 | public function searchByArtifactId($artifact_id) { |
34 | 40 | $artifact_id = $this->da->escapeInt($artifact_id); |
35 | 41 |
@@ -96,6 +96,9 @@ |
||
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param integer $submitted_on |
|
101 | + */ |
|
99 | 102 | private function createChangesetId( |
100 | 103 | Tracker_Artifact $artifact, |
101 | 104 | PFUser $submitter, |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @throws Tracker_Exception In the validation |
57 | 57 | * @throws Tracker_NoChangeException In the validation |
58 | 58 | * |
59 | - * @return Tracker_Artifact_Changeset|Boolean The new changeset if update is done without error, false otherwise |
|
59 | + * @return Tracker_Artifact_Changeset The new changeset if update is done without error, false otherwise |
|
60 | 60 | */ |
61 | 61 | public function create( |
62 | 62 | Tracker_Artifact $artifact, |
@@ -152,6 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | /** |
154 | 154 | * @throws Tracker_FieldValueNotStoredException |
155 | + * @param Tracker_Artifact_Changeset|null $previous_changeset |
|
155 | 156 | */ |
156 | 157 | private function storeFieldsValues(Tracker_Artifact $artifact, $previous_changeset, array $fields_data, PFUser $submitter, $changeset_id) { |
157 | 158 | $used_fields = $this->formelement_factory->getUsedFields($artifact->getTracker()); |
@@ -173,6 +174,10 @@ discard block |
||
173 | 174 | return true; |
174 | 175 | } |
175 | 176 | |
177 | + /** |
|
178 | + * @param string $comment |
|
179 | + * @param string $comment_format |
|
180 | + */ |
|
176 | 181 | private function storeComment( |
177 | 182 | Tracker_Artifact $artifact, |
178 | 183 | $comment, |
@@ -200,6 +205,10 @@ discard block |
||
200 | 205 | return true; |
201 | 206 | } |
202 | 207 | |
208 | + /** |
|
209 | + * @param string $comment |
|
210 | + * @param string|null $email |
|
211 | + */ |
|
203 | 212 | private function validateNewChangeset( |
204 | 213 | Tracker_Artifact $artifact, |
205 | 214 | array $fields_data, |
@@ -188,6 +188,9 @@ |
||
188 | 188 | $this->update($sql); |
189 | 189 | } |
190 | 190 | |
191 | + /** |
|
192 | + * @param string $curr_id |
|
193 | + */ |
|
191 | 194 | private function updateSuccessor($curr_id, $new_successor_id) { |
192 | 195 | $equals_id = "IS NULL"; |
193 | 196 | if ($curr_id) { |