saimod_sys_security Class provided by System as saimod to manage the system_user, system_rights, system_user_to_rights table
| package |
SYSTEM\SAI |
|---|
call_account_action_change_email(string $new_email) : \SYSTEM\API\JSON
stringUsers new EMail Address
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_change_password(string $old_password_sha1, string $new_password_sha1) : \SYSTEM\API\JSON
stringUsers Old Password SHA1 String
stringUsers New Password SHA1 String
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_check(integer $rightid) : \SYSTEM\API\JSON
integerRightID of the right to be checked
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_confirm(string $token) : \SYSTEM\API\JSON
stringToken to do specifics with your Account
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_confirm_email() : \SYSTEM\API\JSON
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_create(string $username, \SYSTEM\API\sha1 $password_sha1, \SYSTEM\API\email $email, \SYSTEM\API\lang $locale = null) : \SYSTEM\API\JSON
stringUsername
\SYSTEM\API\sha1User Password SHA1 String
\SYSTEM\API\emailEmail of the new User
\SYSTEM\API\langLocale which the User wants to register or null for default language
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_isloggedin() : \SYSTEM\API\JSON
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_login(string $username, \SYSTEM\API\sha1 $password_sha1, \SYSTEM\API\lang $locale = null) : \SYSTEM\API\JSON
stringUsername
\SYSTEM\API\sha1User Password SHA1 String
\SYSTEM\API\langLocale which the User wants to login with
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_logout() : \SYSTEM\API\JSON
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_account_action_reset_password(string $username) : \SYSTEM\API\JSON
stringUsername
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_bug(string $message, \SYSTEM\API\JSON $data) : null
stringBugreport Message
\SYSTEM\API\JSONBugreport Data
nullReturns JSON result with success/failure status
call_cache(integer $id, \SYSTEM\API\sha1 $ident) : mixed
integerCache id to be queried
\SYSTEM\API\sha1Cache ident to be queried
mixedReturns cached Data from Database
call_cron() : \SYSTEM\API\JSON
\SYSTEM\API\JSONReturns JSON result with success/failure status
call_files(string $cat, string $id = null) : mixed
stringFile category
stringFile name
mixedReturns JSON result with failure status or streams the File
call_pages(integer $group, string $state) : mixed
integerPage Group for Statesystem
stringFull name of the State.
mixedReturns JSON result with data/failure status
call_text(mixed $request, \SYSTEM\API\lang $lang) : \SYSTEM\API\JSON
mixedRequest String for Text API
\SYSTEM\API\langRequest Language for given text
\SYSTEM\API\JSONReturns JSON result with data/failure status
css() : array
arrayReturns array of Pathobjects pointing to the saimods css
default_page(string $_escaped_fragment_ = null) : string
stringParam for Hashbangcrawling
stringReturns HTML of the defaultpage
get_apigroup() : integer
integerReturns api group id.
get_class() : string
stringReturns your API-Class name
get_default_state() : string
stringReturns name of the startstate.
get_params(array $params) : array
arrayParams to be corrected
arrayReturns array of corrected Params.
js() : array
arrayReturns array of Pathobjects pointing to the saimods js
right_public() : boolean
Override this
booleanReturns true if the saimod is public
right_right() : boolean
Override this
booleanReturns true if accessable for the user else false
sai_mod__SYSTEM_SAI_saimod_sys_security() : string
stringReturns HTML for the Saimods startpage
sai_mod__SYSTEM_SAI_saimod_sys_security_action_addright(integer $id, string $name, string $description) : boolean
integerID of the Right
stringName of the Right
stringDescription of the Right
booleanReturns true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_addrightuser(integer $rightid, integer $userid) : boolean
integerID of the Right
integerID of the User
booleanReturns true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_changeemail(integer $user, string $new_email) : \SYSTEM\SAI\json
Does not send an EMail for authorisation! Does not send an EMail for confirmation!
integerUsername of the Account
stringNew EMail
\SYSTEM\SAI\jsonReturns json with status true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_changepassword(integer $user, string $new_password_sha1) : \SYSTEM\SAI\json
integerUsername of the Account
stringNew Password's SHA1-Hash
\SYSTEM\SAI\jsonReturns json with status true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_confirmemail(integer $user) : \SYSTEM\SAI\json
integerUsername of the Account
\SYSTEM\SAI\jsonReturns json with status true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_deleteaccount(integer $id) : \SYSTEM\SAI\json
integerId of the Account
\SYSTEM\SAI\jsonReturns json with status true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_deleteright(integer $id) : boolean
integerID of the Right
booleanReturns true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_deleterightconfirm(integer $id) : string
integerID of the right
stringReturns HTML
sai_mod__SYSTEM_SAI_saimod_sys_security_action_deleterightuser(integer $rightid, integer $userid) : boolean
integerID of the Right
integerID of the User
booleanReturns true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_groups() : string
stringReturns HTML
sai_mod__SYSTEM_SAI_saimod_sys_security_action_newright() : string
stringReturns HTML
sai_mod__SYSTEM_SAI_saimod_sys_security_action_renameaccount(string $username, string $new_username) : \SYSTEM\SAI\json
stringUsername of the Account
stringNew Username
\SYSTEM\SAI\jsonReturns json with status true or false
sai_mod__SYSTEM_SAI_saimod_sys_security_action_rights() : string
stringReturns HTML
sai_mod__SYSTEM_SAI_saimod_sys_security_action_stats() : string
stringReturns HTML
sai_mod__SYSTEM_SAI_saimod_sys_security_action_user(string $username) : string
stringUsername
stringReturns HTML
sai_mod__SYSTEM_SAI_saimod_sys_security_action_users(string $filter = "all", string $search = "%", integer $page) : string
stringFilter by right
stringFilter by user
integerPage of the List (displays only 100)
stringReturns HTML
static__(mixed $_) : null
mixedAnticaching Parameter of some Browsers
nullReturns nothing
static__escaped_fragment_(string $_escaped_fragment_) : string
stringHashbang-Encoded State
stringReturns your API-HTML result as HTML-Snapshot
static__lang(\SYSTEM\API\lang $lang) : null
\SYSTEM\API\langLanguage requested
nullReturns nothing
static__result(\SYSTEM\API\result $result) : null
\SYSTEM\API\resultResulttype
nullReturns nothing
tablerow_class(integer $last_active) : string
integerUnixtimestamp
stringReturns table row class string
user_actions(integer $userid) : string
integerId of the User
stringReturns HTML
user_rights(integer $userid) : string
integerId of the User
stringReturns HTML