static boolean writeAudit(
string
$user, string
$category, string
$message
)
|
|
Writes an audit log entry to the audit log file. These audits are semantic logs; they don't record every single modification in the database, but provide a logical "who did what" overview. The exact modification SQL statements are logged automatically with writeSQLAudit() instead. The log file path is configurable in _config.php.
Parameters:
string |
$user: |
persistent identifier of the user who triggered the action |
string |
$category: |
type of modification, from the fixed vocabulary: "NEW", "OWN", "MOD", "DEL" |
string |
$message: |
message to log into the audit log |
API Tags:
Return: | TRUE if successful. Will terminate script execution on failure. |
Access: | public |
static void writeSQLAudit(
string
$query
)
|
|
Write an audit log entry to the SQL log file. Every SQL statement which is not a simple SELECT one will be written to the log file. The log file path is configurable in _config.php.
Parameters:
string |
$query: |
the SQL query to be logged |
API Tags:
Constructor sets the language by calling set_lang
and stores language settings in object properties additionally it also sets static variables $laing_index and $root
API Tags:
array printCountryList(
[int
$active_only = 0]
)
|
|
Prepares a list of countries known to the CAT.
Parameters:
int |
$active_only: |
is set and nonzero will cause that only countries with some institutions underneath will be listed |
API Tags:
Return: | Array indexed by (uppercase) lang codes and sorted according to the current locale |
Access: | public |
string set_locale(
string
$domain
)
|
|
Sets the gettext domain
Parameters:
API Tags:
Return: | previous seting so that you can restore it later |
Access: | public |