PHP Class Model\Card

Author: Thomas Oster ([email protected])
Datei anzeigen Open project: sendya/shadowsocks-panel Class Usage Examples

Public Properties

Property Type Description
$add_time 卡号 不重复
$card 主键
$expireTime
$id
$info 1. 为套餐卡时,此字段为套餐类型(单位A/B/C/D/VIP) 2. 为流量卡时,此字段为流量大小(单位GB) 3. 为测试卡时,此字段为测试时长(单位天)
$status 套餐有效期
$type

Public Methods

Method Description
destroy ( )
queryAll ( $type ) 卡状态 0-失效 1-可用
queryCard ( $card )
queryCardById ( $id )

Method Details

destroy() public method

public destroy ( )

queryAll() public static method

卡状态 0-失效 1-可用
public static queryAll ( $type )

queryCard() public static method

public static queryCard ( $card )

queryCardById() public static method

public static queryCardById ( $id )

Property Details

$add_time public_oe property

卡号 不重复
public $add_time

$card public_oe property

主键
public $card

$expireTime public_oe property

public $expireTime

$id public_oe property

public $id

$info public_oe property

1. 为套餐卡时,此字段为套餐类型(单位A/B/C/D/VIP) 2. 为流量卡时,此字段为流量大小(单位GB) 3. 为测试卡时,此字段为测试时长(单位天)
public $info

$status public_oe property

套餐有效期
public $status

$type public_oe property

public $type