\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 : boolean

是否需要事件响应

Type

boolean

Methods

setEvent()

setEvent(object  $event) : void

设置Event对象

Parameters

object $event

Event对象

withEvent()

withEvent(boolean  $event) : $this

当前操作的事件响应

Parameters

boolean $event

是否需要事件响应

Returns

$this

trigger()

trigger(string  $event) : boolean

触发事件

Parameters

string $event

事件名

Returns

boolean