Documentation

DurationPicker extends TiqBase
in package

Create a Date Range Picker

Using a DurationPicker: The duration picker expects two things, a path to a php file and raw JavaScript. The php file will be called via AJAX with two parameters, a start and end time. These will be accesed in php with the $_REQUEST variable. The raw javascript will be executed after the AJAX call returns and has access to the data variable. The data variable should be a JSON structure and can be used in the raw JavaScript.

Table of Contents

$eventPath  : mixed
$loader  : mixed
__construct()  : mixed
Loads the dependancies for this component
__get()  : mixed
Base getter hooked into php's magic __get
__set()  : mixed
Base setter hooked into php's magic __set
createPicker()  : mixed
Creates a daterange picker attached to a grid
terminate()  : mixed
Logs an error and throws and exception

Properties

Methods

__get()

Base getter hooked into php's magic __get

public __get(string $name) : mixed

Allows the retrieval of properties from a class. Requires the implementation of a get method in the concrete class

Parameters
$name : string

name of the property

Return values
mixed

__set()

Base setter hooked into php's magic __set

public __set(string $name, mixed $value) : mixed

Allows the settings of properties on a class safely. Requires the implementation of a set method in the concrete class

Parameters
$name : string

name of property to be set

$value : mixed
Return values
mixed

createPicker()

Creates a daterange picker attached to a grid

public createPicker(string $custom_javascript[, null $start = null ][, null $end = null ][, mixed $alternateDropDown = false ]) : mixed

When the data is changed in either the start or the end date an ajax call is made to a specified path with two parameters passed in as well. T

Parameters
$custom_javascript : string
$start : null = null
$end : null = null
$alternateDropDown : mixed = false
Return values
mixed

terminate()

Logs an error and throws and exception

protected terminate([string $message = '' ]) : mixed
Parameters
$message : string = ''

Reason for termination

Tags
throws
LogicException
Return values
mixed

Search results