@@ -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 |
@@ -39,6 +39,9 @@ |
||
39 | 39 | $this->executeSql($sql); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $sql |
|
44 | + */ |
|
42 | 45 | public function executeSql($sql) { |
43 | 46 | $result = $this->db->dbh->exec($sql); |
44 | 47 | if ($result === false) { |
@@ -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; |
@@ -20,6 +20,10 @@ |
||
20 | 20 | */ |
21 | 21 | |
22 | 22 | class CardResourceBadValueFormatException extends Exception { |
23 | + |
|
24 | + /** |
|
25 | + * @param string $field |
|
26 | + */ |
|
23 | 27 | public function __construct($field) { |
24 | 28 | $message = "field '$field' not found in value object"; |
25 | 29 | parent::__construct($message); |
@@ -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()); |