\think\model\concernModelEvent

模型事件处理

Summary

Methods
Properties
Constants
setEvent()
withEvent()
No public properties found
No constants found
trigger()
$event
$withEvent
N/A
No private methods found
No private properties found
N/A

Properties

$event

$event : object

Event对象

Type

object

$withEvent

$withEvent : bool

是否需要事件响应

Type

bool

Methods

setEvent()

setEvent(object  $event) : void

设置Event对象

Parameters

object $event

Event对象

withEvent()

withEvent(bool  $event) : $this

当前操作的事件响应

Parameters

bool $event

是否需要事件响应

Returns

$this —

trigger()

trigger(string  $event) : bool

触发事件

Parameters

string $event

事件名

Returns

bool —