PHP Class Users, phprs-restful

Afficher le fichier Open project: caoym/phprs-restful Class Usage Examples

Méthodes publiques

Свойство Type Description
$db PDO
$oss

Méthodes publiques

Méthode Description
createUser ( &$uid, $token, $account, $alias, $password, $avatar = null ) : user's create user
deleteUserByAccount ( $account )
getCurrentUser ( $token ) get current user info
getUserByAccount ( $account )
getUserByAlias ( $alias )
getUserByIds ( $uids, $asDict = false ) get users info
updateUser ( $token, $alias = null, $password = null, $avatar = null ) modify user's information
verifyPassword ( $account, $password )

Private Methods

Méthode Description
getUser ( $cond )
uploadAvatar ( $file )

Method Details

createUser() public méthode

create user
public createUser ( &$uid, $token, $account, $alias, $password, $avatar = null ) : user's
Résultat user's

deleteUserByAccount() public méthode

public deleteUserByAccount ( $account )

getCurrentUser() public méthode

get current user info
public getCurrentUser ( $token )

getUserByAccount() public méthode

public getUserByAccount ( $account )

getUserByAlias() public méthode

public getUserByAlias ( $alias )

getUserByIds() public méthode

get users info
public getUserByIds ( $uids, $asDict = false )

updateUser() public méthode

modify user's information
public updateUser ( $token, $alias = null, $password = null, $avatar = null )

verifyPassword() public méthode

public verifyPassword ( $account, $password )

Property Details

$db public_oe property

public PDO $db
Résultat PDO

$oss public_oe property

public $oss