메소드 | 설명 | |
---|---|---|
changeUserRole ( $type ) : boolean | Upgrades / downgrades the user's account. Currently it's just the field user_account_type in the database that can be 1 or 2 (maybe "basic" or "premium"). Put some more complex stuff in here, maybe a pay-process or whatever you like. | |
saveRoleToDatabase ( $type ) : boolean | Writes the new account type marker to the database and to the session |
public static changeUserRole ( $type ) : boolean | ||
$type | ||
리턴 | boolean |
public static saveRoleToDatabase ( $type ) : boolean | ||
$type | ||
리턴 | boolean |