PHP Class Model\User

Datei anzeigen Open project: sendya/shadowsocks-panel Class Usage Examples

Public Properties

Property Type Description
$email (主键)
$enable 账户类型
$expireTime 上次支付时间
$flow_down 上传流量
$flow_up ss端口
$forgePwdCode 找回密码次数
$invite 狗屁用都没的 $
$invite_num 注册所用的邀请码
$lastActive
$lastCheckinTime 上次使用时间
$lastConnTime 注册时间
$lastFindPasswdCount 上次找回密码时间 (找回密码时间和次数仅用作限制3次或?次后禁止找回)
$lastFindPasswdTime 上次签到时间
$method 到期时间
$money 是否启用SS 0不启用 1启用
$nickname 电子邮件
$payTime 找回密码次数
$plan 总流量
$port ss连接密码
$regDateLine 用户拥有的邀请码
$sspwd Fuck password
$transfer 下载流量
$uid 定义主键

Protected Properties

Property Type Description
$password 昵称,没卵用

Public Methods

Method Description
checkUserPortIsAvailable ( $port, $uid )
enableUsersByExpireTime ( )
getCount ( )
getCurrent ( ) : User Get current user object
getPlan ( )
getUseTransfer ( )
getUserArrayByExpire ( )
getUserByEmail ( $email ) : User
getUserByUserId ( $userId ) : User
getUserList ( )
isAdmin ( )
setAdmin ( $val ) Set administrator
setPassword ( $password )
stop ( ) 停止用户
verifyPassword ( $password )

Method Details

checkUserPortIsAvailable() public static method

public static checkUserPortIsAvailable ( $port, $uid )

enableUsersByExpireTime() public static method

public static enableUsersByExpireTime ( )

getCount() public static method

public static getCount ( )

getCurrent() public static method

Get current user object
public static getCurrent ( ) : User
return User

getPlan() public method

public getPlan ( )

getUseTransfer() public method

public getUseTransfer ( )

getUserArrayByExpire() public static method

public static getUserArrayByExpire ( )

getUserByEmail() public static method

public static getUserByEmail ( $email ) : User
$email
return User

getUserByUserId() public static method

public static getUserByUserId ( $userId ) : User
$userId
return User

getUserList() public static method

public static getUserList ( )

isAdmin() public method

public isAdmin ( )

setAdmin() public method

Set administrator
public setAdmin ( $val )

setPassword() public method

public setPassword ( $password )

stop() public method

停止用户
public stop ( )

verifyPassword() public method

public verifyPassword ( $password )

Property Details

$email public_oe property

(主键)
public $email

$enable public_oe property

账户类型
public $enable

$expireTime public_oe property

上次支付时间
public $expireTime

$flow_down public_oe property

上传流量
public $flow_down

$flow_up public_oe property

ss端口
public $flow_up

$forgePwdCode public_oe property

找回密码次数
public $forgePwdCode

$invite public_oe property

狗屁用都没的 $
public $invite

$invite_num public_oe property

注册所用的邀请码
public $invite_num

$lastActive public_oe property

public $lastActive

$lastCheckinTime public_oe property

上次使用时间
public $lastCheckinTime

$lastConnTime public_oe property

注册时间
public $lastConnTime

$lastFindPasswdCount public_oe property

上次找回密码时间 (找回密码时间和次数仅用作限制3次或?次后禁止找回)
public $lastFindPasswdCount

$lastFindPasswdTime public_oe property

上次签到时间
public $lastFindPasswdTime

$method public_oe property

到期时间
public $method

$money public_oe property

是否启用SS 0不启用 1启用
public $money

$nickname public_oe property

电子邮件
public $nickname

$password protected_oe property

昵称,没卵用
protected $password

$payTime public_oe property

找回密码次数
public $payTime

$plan public_oe property

总流量
public $plan

$port public_oe property

ss连接密码
public $port

$regDateLine public_oe property

用户拥有的邀请码
public $regDateLine

$sspwd public_oe property

Fuck password
public $sspwd

$transfer public_oe property

下载流量
public $transfer

$uid public_oe property

定义主键
public $uid