PHP 클래스 UserRoleModel, huge

This class contains everything that is related to up- and downgrading accounts.
파일 보기 프로젝트 열기: panique/huge 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

changeUserRole() 공개 정적인 메소드

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.
public static changeUserRole ( $type ) : boolean
$type
리턴 boolean

saveRoleToDatabase() 공개 정적인 메소드

Writes the new account type marker to the database and to the session
public static saveRoleToDatabase ( $type ) : boolean
$type
리턴 boolean