PHP 클래스 Clockwork\Request\Timeline

파일 보기 프로젝트 열기: itsgoingd/clockwork 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$data Timeline data

공개 메소드들

메소드 설명
addEvent ( $name, $description, $start_time, $end_time, array $data = [] ) Add a new event
endEvent ( $name ) End recording of event specified by name argument, throws exception if specified event is not found
finalize ( $start = null, $end = null ) End all unfinished events
startEvent ( $name, $description, $time = null, array $data = [] ) Start recording a new event, expects name, description and optional time as arguments, if time is not provided, current time will be used, if time equals 'start', request time will be used
toArray ( ) Return timeline data as array

메소드 상세

addEvent() 공개 메소드

Add a new event
public addEvent ( $name, $description, $start_time, $end_time, array $data = [] )
$data array

endEvent() 공개 메소드

End recording of event specified by name argument, throws exception if specified event is not found
public endEvent ( $name )

finalize() 공개 메소드

End all unfinished events
public finalize ( $start = null, $end = null )

startEvent() 공개 메소드

Start recording a new event, expects name, description and optional time as arguments, if time is not provided, current time will be used, if time equals 'start', request time will be used
public startEvent ( $name, $description, $time = null, array $data = [] )
$data array

toArray() 공개 메소드

Return timeline data as array
public toArray ( )

프로퍼티 상세

$data 공개적으로 프로퍼티

Timeline data
public $data