@@ -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 |
@@ -43,6 +43,9 @@ |
||
43 | 43 | |
44 | 44 | private $swimline_id; |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $accent_color |
|
48 | + */ |
|
46 | 49 | public function __construct(Tracker_Artifact $artifact, Cardwall_CardFields $card_fields, $accent_color, Cardwall_UserPreferences_UserPreferencesDisplayUser $display_preferences, $swimline_id, array $allowed_children, Tracker_Artifact $parent = null) { |
47 | 50 | $this->artifact = $artifact; |
48 | 51 | $this->parent = $parent; |
@@ -101,6 +101,9 @@ |
||
101 | 101 | return $this->fetchCards($matching_ids, $user, $form); |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param Cardwall_Form $form |
|
106 | + */ |
|
104 | 107 | private function fetchCards($matching_ids, PFUser $user, $form = null) { |
105 | 108 | $total_rows = $matching_ids['id'] ? substr_count($matching_ids['id'], ',') + 1 : 0; |
106 | 109 | if (!$total_rows) { |
@@ -44,6 +44,9 @@ |
||
44 | 44 | return $this->update($sql); |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param integer $renderer_id |
|
49 | + */ |
|
47 | 50 | function save($renderer_id, $field_id) { |
48 | 51 | $renderer_id = $this->da->escapeInt($renderer_id); |
49 | 52 | $field_id = $this->da->escapeInt($field_id); |
@@ -25,6 +25,9 @@ |
||
25 | 25 | */ |
26 | 26 | class CardwallPluginInfo extends PluginFileInfo { |
27 | 27 | |
28 | + /** |
|
29 | + * @param cardwallPlugin $plugin |
|
30 | + */ |
|
28 | 31 | function __construct($plugin) { |
29 | 32 | parent::__construct($plugin, 'config'); |
30 | 33 | $this->setPluginDescriptor(new CardwallPluginDescriptor()); |
@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | $this->fgcolor = $fgcolor; |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param boolean|string $value |
|
69 | + */ |
|
67 | 70 | public function setAutostack($value) { |
68 | 71 | $this->autostack = $value; |
69 | 72 | return $this; |
@@ -108,6 +111,9 @@ discard block |
||
108 | 111 | return $is_mapped || $this->matchesStatus($artifact_status); |
109 | 112 | } |
110 | 113 | |
114 | + /** |
|
115 | + * @param string $artifact_status |
|
116 | + */ |
|
111 | 117 | private function matchesStatus($artifact_status) { |
112 | 118 | return $this->matchesLabel($artifact_status) || $this->matchesTheNoneColumn($artifact_status); |
113 | 119 | } |
@@ -63,6 +63,10 @@ |
||
63 | 63 | */ |
64 | 64 | public $submit; |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $renderer_id |
|
68 | + * @param Tracker_FormElement_Field|null $field |
|
69 | + */ |
|
66 | 70 | public function __construct($report_id, $renderer_id, $printer_version, $field, array $selectboxes) { |
67 | 71 | $this->report_id = (int)$report_id; |
68 | 72 | $this->renderer_id = (int)$renderer_id; |