Метод |
Описание |
|
GetByName ( $p_name ) : mixed |
Get the user type that matches the given name. |
|
GetUserTypeFromConfig ( $p_configVars ) : mixed |
Get the user type that matches the given config variables. |
|
GetUserTypes ( ) : array |
Get all the user types with the exception of those with
the Reader permission. |
|
UserType ( $p_userTypeId = null ) : void |
Constructor |
|
create ( $p_name = null, $p_configVars = [] ) : boolean |
Create the new UserType with the config variables given. |
|
delete ( ) : boolean |
Delete the user type. |
|
exists ( ) : boolean |
Whether the user type exists or not |
|
getConfig ( ) : array |
Return an array of config values in the form array("varname" => "value"); |
|
getId ( ) : integer |
Get the id of this user type. |
|
getName ( ) : string |
Get the name of this user type. |
|
getValue ( string $p_varName ) : mixed |
Return the value of the given variable name. |
|
hasPermission ( string $p_permissionString ) : boolean |
Return true if the user type has the permission specified. |
|
setPermission ( $p_permissionString, $p_permissionValue ) |
Set the specified permission. |
|
setValue ( string $p_varName, mixed $p_value ) : void |
Set the default config value for the given variable. |
|