PHP 클래스 luya\behaviors\Timestamp

부터: 1.0.0-beta5
저자: nadar
상속: extends yii\base\Behavior
파일 보기 프로젝트 열기: luyadev/luya

공개 프로퍼티들

프로퍼티 타입 설명
$insert An array with all fields where the timestamp should be applied to on insert.
$update An array with all fields where the timestamp should be applied to on update.

공개 메소드들

메소드 설명
beforeInsert ( Event $event ) Insert the timestamp for all provided fields.
beforeUpdate ( Event $event ) Update the timestamp for all provided fields.
events ( ) Register event handlers before insert and update.

메소드 상세

beforeInsert() 공개 메소드

Insert the timestamp for all provided fields.
public beforeInsert ( Event $event )
$event yii\base\Event Event object from Active Record.

beforeUpdate() 공개 메소드

Update the timestamp for all provided fields.
public beforeUpdate ( Event $event )
$event yii\base\Event Event object from Active Record.

events() 공개 메소드

Register event handlers before insert and update.
또한 보기: yii\base\Behavior::events()
public events ( )

프로퍼티 상세

$insert 공개적으로 프로퍼티

An array with all fields where the timestamp should be applied to on insert.
public $insert

$update 공개적으로 프로퍼티

An array with all fields where the timestamp should be applied to on update.
public $update