__construct()
__construct() :
USER
USER
Common methods for handling users.
writeUser( add = TRUE, admin) :
Write user details to WKX_users
If $admin = 0, this is a standard user. If $admin = 1, this is the initial configuration/reconfiguration and we need to insert superadmin details into the database. If $admin = 2, this is an admin editing or adding a user. a) the user may not change the username from this screen. When adding a user, we need to check there is not already $username (caseless) in the database. NB - returns FALSE in case of success, an error message in case of failure.
add | Default is TRUE |
|
admin | Default is 0 |
displayUserAddEdit(mixed||string|int row, both = FALSE, type = resource) : mixed||string|int
create 'added by..., edited by... details for displaying resources
mixed||string|int | row | |
both | Default is FALSE |
|
type | Default is 'resource' |
($userAdd, $userEdit)