@@ -70,6 +70,9 @@ |
||
70 | 70 | return $this; |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param integer $planning_id |
|
75 | + */ |
|
73 | 76 | public function withPlanningId($planning_id) { |
74 | 77 | $this->withPlanning(aPlanning()->withId($planning_id)->build()); |
75 | 78 | return $this; |
@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | return $this; |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $name |
|
50 | + */ |
|
48 | 51 | public function withName($name) { |
49 | 52 | $this->name = $name; |
50 | 53 | return $this; |
@@ -55,11 +58,17 @@ discard block |
||
55 | 58 | return $this; |
56 | 59 | } |
57 | 60 | |
61 | + /** |
|
62 | + * @param integer $group_id |
|
63 | + */ |
|
58 | 64 | public function withGroupId($group_id) { |
59 | 65 | $this->group_id = $group_id; |
60 | 66 | return $this; |
61 | 67 | } |
62 | 68 | |
69 | + /** |
|
70 | + * @param integer $planning_tracker_id |
|
71 | + */ |
|
63 | 72 | public function withPlanningTrackerId($planning_tracker_id) { |
64 | 73 | $this->planning_tracker_id = $planning_tracker_id; |
65 | 74 | return $this; |
@@ -71,6 +80,9 @@ discard block |
||
71 | 80 | return $this; |
72 | 81 | } |
73 | 82 | |
83 | + /** |
|
84 | + * @param Tracker $backlog_tracker |
|
85 | + */ |
|
74 | 86 | public function withBacklogTracker($backlog_tracker) { |
75 | 87 | $this->backlog_tracker_ids[] = $backlog_tracker->getId(); |
76 | 88 | $this->backlog_trackers[] = $backlog_tracker; |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * |
44 | - * @param array $files Data table containing the name of data files |
|
45 | 44 | * @param array $datas Data table containing picked datas |
46 | 45 | * @param string $context_datas Will be written in the log files. |
46 | + * @param string $storage_directory |
|
47 | 47 | * @throws Exception Both arrays must have the same size. |
48 | 48 | */ |
49 | 49 | public function __construct($storage_directory, $datas, $context_datas) { |
@@ -93,6 +93,10 @@ discard block |
||
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $separator |
|
98 | + * @param integer $column |
|
99 | + */ |
|
96 | 100 | private function extractDatasFromFormattedFile($file, /* & $array, */ $separator, $column = null) { |
97 | 101 | $returned_array = array(); |
98 | 102 | foreach (file($file, FILE_IGNORE_NEW_LINES) as $line) { |
@@ -102,6 +106,10 @@ discard block |
||
102 | 106 | return $returned_array; |
103 | 107 | } |
104 | 108 | |
109 | + /** |
|
110 | + * @param string $file_name |
|
111 | + * @param string $mode |
|
112 | + */ |
|
105 | 113 | private function writeArrayToFile($file_name, $mode, $array) { |
106 | 114 | $file = fopen($file_name, $mode); |
107 | 115 | foreach ($array as $line) { |
@@ -110,6 +118,10 @@ discard block |
||
110 | 118 | fclose($file); |
111 | 119 | } |
112 | 120 | |
121 | + /** |
|
122 | + * @param string $file_name |
|
123 | + * @param string $documentation |
|
124 | + */ |
|
113 | 125 | private function writeDocumentationtoFile($file_name, $documentation) { |
114 | 126 | $file = fopen($file_name, 'a'); |
115 | 127 | fwrite($file, $documentation); |
@@ -150,6 +162,9 @@ discard block |
||
150 | 162 | fclose($output_file); |
151 | 163 | } |
152 | 164 | |
165 | + /** |
|
166 | + * @return string |
|
167 | + */ |
|
153 | 168 | private function formatCell($index, $array, $cell_content) { |
154 | 169 | if ($index != count($array) - 1) { |
155 | 170 | $cell_content .= ","; |
@@ -166,6 +181,9 @@ discard block |
||
166 | 181 | return $column; |
167 | 182 | } |
168 | 183 | |
184 | + /** |
|
185 | + * @param string[] $file_extensions |
|
186 | + */ |
|
169 | 187 | private function removeFilesWithExtensions($file_extensions) { |
170 | 188 | foreach ($file_extensions as $file_extension) { |
171 | 189 | $files_list = glob('*' . $file_extension); |
@@ -160,7 +160,6 @@ |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * for hook administration :display an URL to access Boomerang statistics.. |
163 | - * @param array $params:contains the data which comes from the envent listened. |
|
164 | 163 | */ |
165 | 164 | function siteAdminHooks($params) { |
166 | 165 | global $Language; |
@@ -21,6 +21,9 @@ |
||
21 | 21 | |
22 | 22 | class BoomerangPluginInfo extends PluginFileInfo { |
23 | 23 | |
24 | + /** |
|
25 | + * @param BoomerangPlugin $plugin |
|
26 | + */ |
|
24 | 27 | public function __construct($plugin) { |
25 | 28 | parent::__construct($plugin, 'config'); |
26 | 29 | $this->setPluginDescriptor(new BoomerangPluginDescriptor()); |
@@ -71,6 +71,9 @@ |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param integer $array_size |
|
76 | + */ |
|
74 | 77 | private function getQuartilesIndexes($array_size) { |
75 | 78 | $array_size--; |
76 | 79 | return array( |
@@ -36,6 +36,10 @@ |
||
36 | 36 | $this->addCardField('impediment', 2); |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $name |
|
41 | + * @param integer $rank |
|
42 | + */ |
|
39 | 43 | private function addCardField($name, $rank) { |
40 | 44 | $sql = "INSERT INTO plugin_cardwall_semantic_cardfields(tracker_id, field_id, rank) |
41 | 45 | SELECT tracker_id, id, $rank |
@@ -59,10 +59,16 @@ |
||
59 | 59 | $GLOBALS['Response']->sendJSON($json_format); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param Tracker_FormElement_Field $field |
|
64 | + */ |
|
62 | 65 | private function addJsonFieldValues(&$json_format, $field) { |
63 | 66 | $json_format['fields'][$field->getName()] = $this->single_card->getFieldJsonValue($this->request->getCurrentUser(), $field); |
64 | 67 | } |
65 | 68 | |
69 | + /** |
|
70 | + * @param Tracker_FormElement_Field $field |
|
71 | + */ |
|
66 | 72 | private function addHTMLFieldValues(&$json_format, $field) { |
67 | 73 | $json_format['html_fields'][$field->getName()] = $this->single_card->getFieldHTMLValue($this->request->getCurrentUser(), $field); |
68 | 74 | } |
@@ -69,6 +69,9 @@ |
||
69 | 69 | return $presenters; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param integer $swimline_id |
|
74 | + */ |
|
72 | 75 | private function getCardPresenter(Tracker_Artifact $artifact, $swimline_id) { |
73 | 76 | $color = $artifact->getCardAccentColor($this->user); |
74 | 77 |