|
@@ -84,6 +84,7 @@ discard block |
|
|
block discarded – undo |
|
84
|
84
|
/** |
|
85
|
85
|
* executes a query and triggers logging to the SQL audit log if it's not a SELECT |
|
86
|
86
|
* @param string $querystring the query to be executed |
|
|
87
|
+ * @param string $db |
|
87
|
88
|
* @return mixed the query result as mysqli_result object; or TRUE on non-return-value statements |
|
88
|
89
|
*/ |
|
89
|
90
|
public static function exec($db, $querystring) { |
|
@@ -134,6 +135,8 @@ discard block |
|
|
block discarded – undo |
|
134
|
135
|
/** |
|
135
|
136
|
* Checks if a raw data pointer is public data (return value FALSE) or if |
|
136
|
137
|
* yes who the authorised admins to view it are (return array of user IDs) |
|
|
138
|
+ * @param string $table |
|
|
139
|
+ * @param string $row |
|
137
|
140
|
*/ |
|
138
|
141
|
public static function isDataRestricted($table, $row) { |
|
139
|
142
|
if ($table != "institution_option" && $table != "profile_option" && $table != "federation_option") { |
|
@@ -177,6 +180,7 @@ discard block |
|
|
block discarded – undo |
|
177
|
180
|
|
|
178
|
181
|
/** |
|
179
|
182
|
* Retrieves the last auto-id of an INSERT. Needs to be called immediately after the corresponding exec() call |
|
|
183
|
+ * @param string $database |
|
180
|
184
|
* @return int the last autoincrement-ID |
|
181
|
185
|
*/ |
|
182
|
186
|
public static function lastID($database) { |
Please login to merge, or discard this patch.