@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * Get reminder id |
70 | 70 | * |
71 | - * @return String |
|
71 | + * @return integer |
|
72 | 72 | */ |
73 | 73 | public function getId() { |
74 | 74 | return $this->reminderId; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @param Tracker_Artifact $artifact |
44 | 44 | * |
45 | - * @return Array of PFUser |
|
45 | + * @return PFUser[] of PFUser |
|
46 | 46 | */ |
47 | 47 | function getRecipientsFromArtifact(Tracker_Artifact $artifact) { |
48 | 48 | $permission_assignee = new Tracker_Permission_PermissionRetrieveAssignee($artifact->getUserManager()); |
@@ -235,6 +235,8 @@ |
||
235 | 235 | * Get the subject for reminder |
236 | 236 | * |
237 | 237 | * @param String $recipient The recipient who will receive the reminder |
238 | + * @param Tracker_DateReminder $reminder |
|
239 | + * @param Tracker_Artifact $artifact |
|
238 | 240 | * |
239 | 241 | * @return String |
240 | 242 | */ |
@@ -140,6 +140,7 @@ discard block |
||
140 | 140 | * It contains: all dynamic ugroups plus project members and admins and the defined tracker roles |
141 | 141 | * |
142 | 142 | * @params Integer $reminderId Id of the date reminder we want to customize its notified |
143 | + * @param integer $reminderId |
|
143 | 144 | * |
144 | 145 | * @return String |
145 | 146 | */ |
@@ -406,7 +407,7 @@ discard block |
||
406 | 407 | /** |
407 | 408 | * Display all reminders of the tracker |
408 | 409 | * |
409 | - * @return Void |
|
410 | + * @return string|null |
|
410 | 411 | */ |
411 | 412 | public function displayAllReminders() { |
412 | 413 | $titles = array($GLOBALS['Language']->getText('plugin_tracker_date_reminder','tracker_date_reminder_send_to'), |
@@ -66,6 +66,11 @@ discard block |
||
66 | 66 | return $this->updateAndGetLastId($sql); |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param string $label |
|
71 | + * @param string $description |
|
72 | + * @param string $rank |
|
73 | + */ |
|
69 | 74 | public function create($field_id, $label, $description, $rank, $is_hidden) { |
70 | 75 | $field_id = $this->da->escapeInt($field_id); |
71 | 76 | $label = $this->da->quoteSmart($label); |
@@ -92,6 +97,9 @@ discard block |
||
92 | 97 | return $this->retrieve($sql); |
93 | 98 | } |
94 | 99 | |
100 | + /** |
|
101 | + * @param integer $id |
|
102 | + */ |
|
95 | 103 | public function hideValue($id) { |
96 | 104 | $id = $this->da->escapeInt($id); |
97 | 105 | |
@@ -103,6 +111,9 @@ discard block |
||
103 | 111 | return $this->update($sql); |
104 | 112 | } |
105 | 113 | |
114 | + /** |
|
115 | + * @param integer $id |
|
116 | + */ |
|
106 | 117 | public function updateLabel($id, $label) { |
107 | 118 | $id = $this->da->escapeInt($id); |
108 | 119 | $label = $this->da->quoteSmart($label); |
@@ -133,6 +144,9 @@ discard block |
||
133 | 144 | return $this->update($sql); |
134 | 145 | } |
135 | 146 | |
147 | + /** |
|
148 | + * @param integer $id |
|
149 | + */ |
|
136 | 150 | public function delete($id) { |
137 | 151 | $id = $this->da->escapeInt($id); |
138 | 152 | $sql = "DELETE FROM $this->table_name |
@@ -157,6 +171,9 @@ discard block |
||
157 | 171 | return $this->retrieve($sql); |
158 | 172 | } |
159 | 173 | |
174 | + /** |
|
175 | + * @param integer $value_id |
|
176 | + */ |
|
160 | 177 | public function canValueBeHiddenWithoutCheckingSemanticStatus($field_id, $value_id) { |
161 | 178 | $semantic_status_statement = ''; |
162 | 179 | |
@@ -245,6 +262,9 @@ discard block |
||
245 | 262 | return ! isset($this->cache_canbehidden_values[$field_id][$value_id]); |
246 | 263 | } |
247 | 264 | |
265 | + /** |
|
266 | + * @param integer $value_id |
|
267 | + */ |
|
248 | 268 | public function canValueBeDeleted($field_id, $value_id) { |
249 | 269 | $field_id = $this->da->escapeInt($field_id); |
250 | 270 | $value_id = $this->da->escapeInt($value_id); |
@@ -274,6 +294,9 @@ discard block |
||
274 | 294 | return $this->canValueBeHidden($field_id, $value_id) && ! isset($this->cache_canbedeleted_values[$field_id][$value_id]); |
275 | 295 | } |
276 | 296 | |
297 | + /** |
|
298 | + * @param integer $field_id |
|
299 | + */ |
|
277 | 300 | public function updateOriginalValueId($field_id, $old_original_value_id, $new_original_value_id) { |
278 | 301 | $field_id = $this->da->escapeInt($field_id); |
279 | 302 | $old_original_value_id = $this->da->escapeInt($old_original_value_id); |
@@ -304,6 +327,10 @@ discard block |
||
304 | 327 | return $this->update($sql); |
305 | 328 | } |
306 | 329 | |
330 | + /** |
|
331 | + * @param integer $field_id |
|
332 | + * @param string $label |
|
333 | + */ |
|
307 | 334 | public function searchValueByLabel($field_id, $label) { |
308 | 335 | $field_id = $this->da->escapeInt($field_id); |
309 | 336 | $label = $this->da->quoteSmart($label); |
@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | return $this->updateAndGetLastId($sql); |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param boolean $is_hidden |
|
69 | + */ |
|
67 | 70 | public function create($field_id, $ugroup_id, $is_hidden) { |
68 | 71 | $field_id = $this->da->escapeInt($field_id); |
69 | 72 | $ugroup_id = $this->da->escapeInt($ugroup_id); |
@@ -74,14 +77,23 @@ discard block |
||
74 | 77 | return $this->updateAndGetLastId($sql); |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param integer $id |
|
82 | + */ |
|
77 | 83 | public function hide($id) { |
78 | 84 | return $this->toggleHidden($id, 1); |
79 | 85 | } |
80 | 86 | |
87 | + /** |
|
88 | + * @param integer $id |
|
89 | + */ |
|
81 | 90 | public function show($id) { |
82 | 91 | return $this->toggleHidden($id, 0); |
83 | 92 | } |
84 | 93 | |
94 | + /** |
|
95 | + * @param integer $is_hidden |
|
96 | + */ |
|
85 | 97 | private function toggleHidden($id, $is_hidden) { |
86 | 98 | $id = $this->da->escapeInt($id); |
87 | 99 | $is_hidden = $is_hidden ? 1 : 0; |
@@ -23,6 +23,10 @@ discard block |
||
23 | 23 | parent::__construct(); |
24 | 24 | $this->table_name = 'tracker_field_list_bind_users'; |
25 | 25 | } |
26 | + |
|
27 | + /** |
|
28 | + * @param integer $field_id |
|
29 | + */ |
|
26 | 30 | public function searchByFieldId($field_id) { |
27 | 31 | $field_id = $this->da->escapeInt($field_id); |
28 | 32 | $sql = "SELECT * |
@@ -47,6 +51,10 @@ discard block |
||
47 | 51 | return $this->update($sql); |
48 | 52 | } |
49 | 53 | |
54 | + /** |
|
55 | + * @param string $display_name_query |
|
56 | + * @param string $display_name_order |
|
57 | + */ |
|
50 | 58 | public function searchChangesetValues($changeset_id, $field_id, $display_name_query, $display_name_order) { |
51 | 59 | $changeset_id = $this->da->escapeInt($changeset_id); |
52 | 60 | $field_id = $this->da->escapeInt($field_id); |
@@ -23,6 +23,10 @@ |
||
23 | 23 | parent::__construct(); |
24 | 24 | $this->table_name = 'tracker_field_list_bind_decorator'; |
25 | 25 | } |
26 | + |
|
27 | + /** |
|
28 | + * @param integer $field_id |
|
29 | + */ |
|
26 | 30 | public function searchByFieldId($field_id) { |
27 | 31 | $field_id = $this->da->escapeInt($field_id); |
28 | 32 | $sql = "SELECT * |
@@ -23,6 +23,10 @@ discard block |
||
23 | 23 | parent::__construct(); |
24 | 24 | $this->table_name = 'tracker_field_openlist_value'; |
25 | 25 | } |
26 | + |
|
27 | + /** |
|
28 | + * @param integer $field_id |
|
29 | + */ |
|
26 | 30 | public function searchById($field_id, $id) { |
27 | 31 | $field_id = $this->da->escapeInt($field_id); |
28 | 32 | $id = $this->da->escapeInt($id); |
@@ -33,6 +37,9 @@ discard block |
||
33 | 37 | return $this->retrieve($sql); |
34 | 38 | } |
35 | 39 | |
40 | + /** |
|
41 | + * @param integer $field_id |
|
42 | + */ |
|
36 | 43 | public function searchByFieldId($field_id) { |
37 | 44 | $field_id = $this->da->escapeInt($field_id); |
38 | 45 | |
@@ -53,6 +60,10 @@ discard block |
||
53 | 60 | return $this->update($sql); |
54 | 61 | } |
55 | 62 | |
63 | + /** |
|
64 | + * @param integer $field_id |
|
65 | + * @param string $label |
|
66 | + */ |
|
56 | 67 | public function create($field_id, $label) { |
57 | 68 | $field_id = $this->da->escapeInt($field_id); |
58 | 69 | $label = $this->da->quoteSmart($label); |
@@ -61,6 +72,9 @@ discard block |
||
61 | 72 | return $this->updateAndGetLastId($sql); |
62 | 73 | } |
63 | 74 | |
75 | + /** |
|
76 | + * @param integer $field_id |
|
77 | + */ |
|
64 | 78 | public function searchByKeyword($field_id, $keyword, $limit = 10) { |
65 | 79 | $field_id = $this->da->escapeInt($field_id); |
66 | 80 | $limit = $this->da->escapeInt($limit); |
@@ -73,6 +87,9 @@ discard block |
||
73 | 87 | return $this->retrieve($sql); |
74 | 88 | } |
75 | 89 | |
90 | + /** |
|
91 | + * @param integer $field_id |
|
92 | + */ |
|
76 | 93 | public function searchByExactLabel($field_id, $label) { |
77 | 94 | $field_id = $this->da->escapeInt($field_id); |
78 | 95 | $label = $this->da->quoteSmart($label); |