DATA_SOURCE_REQUEST
DATA_SOURCE_REQUEST
Form Sidebar Widget
$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
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\Widget\FormSidebarWidget
Set the widget's priority or sorting index.
integer | $priority | An index, for sorting. |
If the priority is not a number.
Chainable
setData(array|\Charcoal\Admin\Widget\ArrayInterface $data) : \Charcoal\Admin\Widget\FormSidebarWidget
array|\Charcoal\Admin\Widget\ArrayInterface | $data | Class data. |
Chainable
setForm(\Charcoal\Ui\Form\FormInterface $form) : \Charcoal\Admin\Widget\FormSidebarWidget
Set the form widget the sidebar belongs to.
\Charcoal\Ui\Form\FormInterface | $form | The related form widget. |
Chainable
setSidebarProperties(array $properties) : \Charcoal\Admin\Widget\FormSidebarWidget
Set the form's object properties to show in the sidebar.
array | $properties | The form's object properties. |
Chainable
setPropertiesOptions(array $properties) : \Charcoal\Admin\Widget\FormSidebarWidget
Set the map of object property customizations.
array | $properties | The options to customize the group properties. |
Chainable
setTitle(mixed $title) : \Charcoal\Admin\Widget\FormSidebarWidget
mixed | $title | The sidebar title. |
Chainable
setShowSubtitle(boolean $show) : \Charcoal\Admin\Widget\FormSidebarWidget
boolean | $show | The show subtitle flag. |
Chainable
setSubtitle(mixed $subtitle) : \Charcoal\Admin\Widget\FormSidebarWidget
mixed | $subtitle | The sidebar widget subtitle. |
Chainable
setShowFooter(mixed $showFooter) : \Charcoal\Admin\Widget\FormSidebarWidget
mixed | $showFooter | The show footer flag. |
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
setSidebarActions(array $actions) : \Charcoal\Admin\Widget\FormSidebarWidget
Set the sidebar's actions.
array | $actions | One or more actions. |
Chainable.
createSidebarActions(array $actions) : array
Build the sidebar's actions.
Sidebar actions should come from the form settings defined by the "sidebars". It is still possible to completly override those externally by setting the "actions" with the \self::setSidebarActions() method.
array | $actions | Actions to resolve. |
Sidebar actions.