PHP 클래스 Tools\View\Helper\TimelineHelper

You need to include your css and js file, manually: echo $this->Html->script('timeline/timeline'); echo $this->Html->css('/js/timeline/timeline');
상속: extends Cake\View\Helper
파일 보기 프로젝트 열기: dereuromark/cakephp-tools 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$helpers array

보호된 프로퍼티들

프로퍼티 타입 설명
$_defaultConfig array ..
$_items array

공개 메소드들

메소드 설명
addItem ( array $item ) : void Add timeline item.
addItems ( array $items ) : void Add timeline items as an array of items.
finalize ( boolean $return = false ) : void | string Finalize the timeline and write the javascript to the buffer.

보호된 메소드들

메소드 설명
_date ( DateTime | null $date = null ) : string Format date to JS code.
_format ( array $items ) : string Format items to JS code
_options ( array $options ) : string Format options to JS code

메소드 상세

_date() 보호된 메소드

Format date to JS code.
protected _date ( DateTime | null $date = null ) : string
$date DateTime | null
리턴 string

_format() 보호된 메소드

Format items to JS code
또한 보기: Tools\View\Helper\TimelineHelper::addItem()
protected _format ( array $items ) : string
$items array
리턴 string

_options() 보호된 메소드

Format options to JS code
protected _options ( array $options ) : string
$options array
리턴 string

addItem() 공개 메소드

Requires at least: - start (date or datetime) - content (string) Further data options: - end (date or datetime) - group (string) - className (string) - editable (boolean)
public addItem ( array $item ) : void
$item array
리턴 void

addItems() 공개 메소드

Add timeline items as an array of items.
또한 보기: Tools\View\Helper\TimelineHelper::addItem()
public addItems ( array $items ) : void
$items array
리턴 void

finalize() 공개 메소드

Make sure that your view does also output the buffer at some place!
public finalize ( boolean $return = false ) : void | string
$return boolean If the output should be returned instead
리턴 void | string Javascript if $return is true

프로퍼티 상세

$_defaultConfig 보호되어 있는 프로퍼티

..
protected array $_defaultConfig
리턴 array

$_items 보호되어 있는 프로퍼티

protected array $_items
리턴 array

$helpers 공개적으로 프로퍼티

public array $helpers
리턴 array