@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | /** |
110 | 110 | * Create a HTML link to a project's page |
111 | - * @param string $groupame |
|
111 | + * @param string $groupname |
|
112 | 112 | * @param int $group_id |
113 | 113 | * @param string $text |
114 | 114 | * @return string |
@@ -99,12 +99,18 @@ |
||
99 | 99 | var $default_values = array(); |
100 | 100 | var $global = false; |
101 | 101 | |
102 | + /** |
|
103 | + * @param string $name |
|
104 | + */ |
|
102 | 105 | function PluginSpecificRoleSetting(&$role, $name, $global = false) { |
103 | 106 | $this->global = $global; |
104 | 107 | $this->role =& $role; |
105 | 108 | $this->name = $name; |
106 | 109 | } |
107 | 110 | |
111 | + /** |
|
112 | + * @param string[] $values |
|
113 | + */ |
|
108 | 114 | function SetAllowedValues($values) { |
109 | 115 | $this->role->role_values = array_replace_recursive($this->role->role_values, |
110 | 116 | array($this->name => $values)); |
@@ -59,6 +59,10 @@ |
||
59 | 59 | $this->execDB($foreign_key, 'An error occured while foreign key to plugin_git: '); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $sql |
|
64 | + * @param string $message |
|
65 | + */ |
|
62 | 66 | protected function execDB($sql, $message) { |
63 | 67 | $res = $this->db->dbh->exec($sql); |
64 | 68 | if ($res === false) { |
@@ -52,6 +52,10 @@ |
||
52 | 52 | $this->execDB($sql, 'An error occured while adding the http_port col into the table plugin_git_remote_servers'); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $sql |
|
57 | + * @param string $message |
|
58 | + */ |
|
55 | 59 | protected function execDB($sql, $message) { |
56 | 60 | $res = $this->db->dbh->exec($sql); |
57 | 61 | if ($res === false) { |
@@ -54,6 +54,10 @@ |
||
54 | 54 | $this->execDB($table, 'An error occured while adding plugin_git_remote_ugroups : '); |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $sql |
|
59 | + * @param string $message |
|
60 | + */ |
|
57 | 61 | protected function execDB($sql, $message) { |
58 | 62 | $res = $this->db->dbh->exec($sql); |
59 | 63 | if ($res === false) { |
@@ -49,6 +49,10 @@ |
||
49 | 49 | $this->execDB($sql, 'An error occured while adding remote_server_disconnect_date to plugin_git: '); |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $sql |
|
54 | + * @param string $message |
|
55 | + */ |
|
52 | 56 | protected function execDB($sql, $message) { |
53 | 57 | $res = $this->db->dbh->exec($sql); |
54 | 58 | if ($res === false) { |
@@ -54,6 +54,10 @@ |
||
54 | 54 | $this->execDB($sql, 'An error occured while adding plugin_git_remote_servers to ssh_key: '); |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $sql |
|
59 | + * @param string $message |
|
60 | + */ |
|
57 | 61 | private function execDB($sql, $message) { |
58 | 62 | $res = $this->db->dbh->exec($sql); |
59 | 63 | if ($res === false) { |
@@ -57,6 +57,10 @@ |
||
57 | 57 | $this->execDB($sql, 'An error occured while adding refname_type to plugin_git_log: '); |
58 | 58 | } |
59 | 59 | |
60 | + /** |
|
61 | + * @param string $sql |
|
62 | + * @param string $message |
|
63 | + */ |
|
60 | 64 | private function execDB($sql, $message) { |
61 | 65 | $res = $this->db->dbh->exec($sql); |
62 | 66 | if ($res === false) { |
@@ -53,6 +53,10 @@ |
||
53 | 53 | $this->execDB($sql, 'An error occured while adding use_ssl column to plugin_git_remote_servers table, '); |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param string $sql |
|
58 | + * @param string $message |
|
59 | + */ |
|
56 | 60 | private function execDB($sql, $message) { |
57 | 61 | $res = $this->db->dbh->exec($sql); |
58 | 62 | if ($res === false) { |