class TimeLineRow

Class TimeLineRow

Properties

string $label
protected array $time_ranges

Methods

__construct(string $label)

TimeLineRow constructor.

add_time_range(string $start, string $end, bool|string $label = false, bool|string $class = false)

Add a time range to the row

string
get_label()

Get the row label

array
get_time_ranges()

Get the time ranges

Details

at line 22
__construct(string $label)

TimeLineRow constructor.

Parameters

string $label

Label of the row

at line 52
add_time_range(string $start, string $end, bool|string $label = false, bool|string $class = false)

Add a time range to the row

Parameters

string $start

Start date like any English textual datetime description (will be parsed by strtotime function)

string $end

End date like any English textual datetime description (will be parsed by strtotime function)

bool|string $label

Label of the time range

bool|string $class

Class name

at line 31
string get_label()

Get the row label

Return Value

string

Row label

at line 40
array get_time_ranges()

Get the time ranges

Return Value

array

Time ranges