DATA_SOURCE_REQUEST
DATA_SOURCE_REQUEST
Base Time Graph widget.
This widget implements the core feature to create a specialized graph widget that is meant to display object data "over" time.
$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
setHeight(mixed  $height) : \Charcoal\Admin\Widget\Graph\GraphWidgetInterface
                
| mixed | $height | The graph height (for CSS). | 
Chainable
setColors(array<mixed,string>  $colors) : \Charcoal\Admin\Widget\Graph\GraphWidgetInterface
                
| array<mixed,string> | $colors | The graph colors. | 
Chainable
setWidgetId(string  $widgetId) : \Charcoal\Admin\AdminWidget
                
| string | $widgetId | The widget identifier. | 
Chainable
setType(string  $type) : \Charcoal\Admin\AdminWidget
                
| string | $type | The widget type. | 
If the argument is not a string.
Chainable
setIdent(string  $ident) : \Charcoal\Admin\AdminWidget
                
| string | $ident | The widget ident. | 
If the ident is not a string.
(Chainable)
setDataSources(mixed  $sources) : \Charcoal\Admin\AdminWidget
                Set extra data sources to merge when setting data on an entity.
| mixed | $sources | One or more data source identifiers to merge data from. Pass NULL to reset the entity back to default sources. Pass FALSE, an empty string or array to disable extra sources. | 
Chainable
dataSourceFilter(string  $sourceIdent) : callable|null
                Retrieve the callable filter for the given data source.
| string | $sourceIdent | A data source identifier. | 
If the data source is invalid.
Returns a callable variable.
setLabel(mixed  $label) : \Charcoal\Admin\AdminWidget
                
| mixed | $label | The label. | 
Chainable
setShowActions(boolean  $show) : \Charcoal\Admin\AdminWidget
                
| boolean | $show | The show actions flag. | 
Chainable
setShowLabel(boolean  $show) : \Charcoal\Admin\AdminWidget
                
| boolean | $show | The show label flag. | 
Chainable
setPriority(integer  $priority) : \Charcoal\Admin\AdminWidget
                
| integer | $priority | The widget's sorting priority. | 
Chainable
setGroupingType(string  $type) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
                
| string | $type | The group type. | 
If the group type is not a valid type.
Chainable
setDateFormat(string  $format) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
                
| string | $format | The date format. | 
If the format argument is not a string.
Chainable
setSqlDateFormat(string  $format) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
                
| string | $format | The date format. | 
If the format argument is not a string.
Chainable
setStartDate(string|\DateTimeInterface  $ts) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
                
| string|\DateTimeInterface | $ts | The start date. | 
If the date is not a valid datetime format.
Chainable
setEndDate(string|\DateTimeInterface  $ts) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
                
| string|\DateTimeInterface | $ts | The end date. | 
If the date is not a valid datetime format.
Chainable
setDateInterval(string|\DateInterval  $interval) : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
                
| string|\DateInterval | $interval | The date interval, between "categories". | 
If the argument is not a string or an interval object.
Chainable
setModelFactory(\Charcoal\Factory\FactoryInterface  $factory) : \Charcoal\Admin\AdminScript
                
| \Charcoal\Factory\FactoryInterface | $factory | The factory used to create models. | 
Chainable
addDataSources(mixed $sourceIdent, mixed $sourceFilter = null) : \Charcoal\Admin\AdminWidget
Set extra data sources to merge when setting data on an entity.
| mixed | $sourceIdent | The data source identifier. | 
| mixed | $sourceFilter | Optional filter to apply to the source's data. | 
If the data source is invalid.
Chainable
mergeDataSources(array|\Charcoal\Admin\ArrayInterface  $dataset = null) : \Charcoal\Admin\AdminWidget
                Retrieve the available data sources (when setting data on an entity).
| array|\Charcoal\Admin\ArrayInterface | $dataset | The entity data. | 
Chainable
setGroupingTypeByHour() : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
Chainable
setGroupingTypeByDay() : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
Chainable
setGroupingTypeByMonth() : \Charcoal\Admin\Widget\Graph\TimeGraphWidgetInterface
Chainable