\app\common\modelProductSkuModel

Class ProductSkuModel

Summary

Methods
Properties
Constants
getInstance()
updateStatus()
No public properties found
No constants found
getRelationAttribute()
triggerStatus()
$instances
$pk
$type
N/A
No private methods found
No private properties found
N/A

Properties

$instances

$instances : 

Type

$pk

$pk : 

Type

$type

$type : 

Type

Methods

getInstance()

getInstance() : static

Returns

static

updateStatus()

updateStatus(  $toStatus,   $where = null) 

用于更新需要触发状态改变的表

Parameters

$toStatus

int|array

$where

string|array|int

Throws

\think\Exception

getRelationAttribute()

getRelationAttribute(  $name,   $item) 

Parameters

$name
$item

triggerStatus()

triggerStatus(  $item,   $status) 

Parameters

$item
$status