PHP Class CLASS_SSO

Exibir arquivo Open project: baigoStudio/baigoSSO Class Usage Examples

Public Methods

Method Description
__construct ( )
sso_admin ( mixed $str_adminName, mixed $str_adminPass ) : void 管理员 sso_admin function.
sso_chkmail ( mixed $str_userMail, integer $num_userId ) : 解码后数组 检查 邮箱 sso_chkmail function.
sso_chkname ( mixed $str_userName ) : 解码后数组 检查用户名 sso_chkname function.
sso_decode ( $str_code ) : void 解码 sso_decode function.
sso_edit ( mixed $str_userName, string $str_userPass = "", string $str_userPassNew = "", string $str_userMailNew = "", string $str_userNick = "", string $str_userBy = "user_name", string $str_checkPass = false ) : 解码后数组 编辑用户 sso_edit function.
sso_encode ( $arr_data ) : void 编码 sso_encode function.
sso_forgot ( $str_user, $str_userBy = "user_id" )
sso_install ( )
sso_login ( $str_user, mixed $str_userPass, $str_userBy = "user_name" ) : 解码后数组 登录 sso_login function.
sso_mailbox ( $str_userName, $str_userPass = "", $str_userMailNew = "", $str_userBy = "user_name", $str_checkPass = false )
sso_nomail ( $str_user, $str_userBy = "user_id" )
sso_read ( mixed $str_user, string $str_userBy = "user_id" ) : 解码后数组 读取用户信息 sso_read function.
sso_reg ( mixed $str_userName, mixed $str_userPass, string $str_userMail = "", string $str_userNick = "" ) : 解码后数组 注册 sso_reg function.
sso_signature ( mixed $arr_params ) : void 签名 sso_signature function.
sso_sync_login ( mixed $num_userId ) : void 同步登录 sso_sync_login function.
sso_verify ( $arr_params, mixed $str_sign ) : void 验证签名 sso_verify function.

Private Methods

Method Description
result_process ( $arr_get ) : void result_process function.

Method Details

__construct() public method

public __construct ( )

sso_admin() public method

管理员 sso_admin function.
public sso_admin ( mixed $str_adminName, mixed $str_adminPass ) : void
$str_adminName mixed
$str_adminPass mixed
return void

sso_chkmail() public method

检查 邮箱 sso_chkmail function.
public sso_chkmail ( mixed $str_userMail, integer $num_userId ) : 解码后数组
$str_userMail mixed 邮箱
$num_userId integer (default: 0) 当前用户ID(默认为0,忽略)
return 解码后数组 检查结果

sso_chkname() public method

检查用户名 sso_chkname function.
public sso_chkname ( mixed $str_userName ) : 解码后数组
$str_userName mixed 用户名
return 解码后数组 检查结果

sso_decode() public method

解码 sso_decode function.
public sso_decode ( $str_code ) : void
return void

sso_edit() public method

编辑用户 sso_edit function.
public sso_edit ( mixed $str_userName, string $str_userPass = "", string $str_userPassNew = "", string $str_userMailNew = "", string $str_userNick = "", string $str_userBy = "user_name", string $str_checkPass = false ) : 解码后数组
$str_userName mixed 用户名
$str_userPass string (default: "") 密码
$str_userPassNew string (default: "") 新密码
$str_userMailNew string (default: "") 新邮箱
$str_userNick string (default: "") 昵称
$str_userBy string (default: "user_name") 用何种方式编辑(默认用用户名)
$str_checkPass string (default: "off") 是否验证密码(默认不验证)
return 解码后数组 编辑结果

sso_encode() public method

编码 sso_encode function.
public sso_encode ( $arr_data ) : void
return void

sso_forgot() public method

public sso_forgot ( $str_user, $str_userBy = "user_id" )

sso_install() public method

public sso_install ( )

sso_login() public method

登录 sso_login function.
public sso_login ( $str_user, mixed $str_userPass, $str_userBy = "user_name" ) : 解码后数组
$str_userPass mixed 密码
return 解码后数组 登录结果

sso_mailbox() public method

public sso_mailbox ( $str_userName, $str_userPass = "", $str_userMailNew = "", $str_userBy = "user_name", $str_checkPass = false )

sso_nomail() public method

public sso_nomail ( $str_user, $str_userBy = "user_id" )

sso_read() public method

读取用户信息 sso_read function.
public sso_read ( mixed $str_user, string $str_userBy = "user_id" ) : 解码后数组
$str_user mixed ID(或用户名)
$str_userBy string (default: "user_id") 用何种方式读取(默认用ID)
return 解码后数组 用户信息

sso_reg() public method

注册 sso_reg function.
public sso_reg ( mixed $str_userName, mixed $str_userPass, string $str_userMail = "", string $str_userNick = "" ) : 解码后数组
$str_userName mixed 用户名
$str_userPass mixed 密码
$str_userMail string (default: "") 邮箱
$str_userNick string (default: "") 昵称
return 解码后数组 注册结果

sso_signature() public method

签名 sso_signature function.
public sso_signature ( mixed $arr_params ) : void
$arr_params mixed
return void

sso_sync_login() public method

同步登录 sso_sync_login function.
public sso_sync_login ( mixed $num_userId ) : void
$num_userId mixed
return void

sso_verify() public method

验证签名 sso_verify function.
public sso_verify ( $arr_params, mixed $str_sign ) : void
$str_sign mixed
return void