PHP Class AdminModel, huge

PHP version 5
Author: Kapil Sharma ([email protected])
ファイルを表示 Open project: panique/huge Class Usage Examples

Public Methods

Method Description
setAccountSuspensionAndDeletionStatus ( $suspensionInDays, $softDelete, $userId ) Sets the deletion and suspension values

Private Methods

Method Description
resetUserSession ( $userId ) : boolean Kicks the selected user out of the system instantly by resetting the user's session.
writeDeleteAndSuspensionInfoToDatabase ( $userId, $suspensionTime, $delete ) : boolean Simply write the deletion and suspension info for the user into the database, also puts feedback into session

Method Details

setAccountSuspensionAndDeletionStatus() public static method

Sets the deletion and suspension values
public static setAccountSuspensionAndDeletionStatus ( $suspensionInDays, $softDelete, $userId )
$suspensionInDays
$softDelete
$userId