Docs »

Plugins »

Extension Points »

Workspace Widget Datasource

Name: Workspace Widget Datasource
Identifier (ID): cerberusweb.ui.workspace.widget.datasource

Manifest


		<extension point="cerberusweb.ui.workspace.widget.datasource">
			<id>core.workspace.widget.datasource.manual</id>
			<name>Manual Input</name>
			<class>
				<file>api/uri/internal/dashboards/widget_datasources.php</file>
				<name>WorkspaceWidgetDatasource_Manual</name>
			</class>
			<params>
				<param key="widgets">
					<value>
						<data key="core.workspace.widget.counter"/>
						<data key="core.workspace.widget.gauge"/>
					</value>
				</param>
			</params>
		</extension>

Code



class ExampleExtension extends Extension_WorkspaceWidgetDatasource {
	public function getData(Model_WorkspaceWidget $widget, array $params, $params_prefix) {
	}

	public function renderConfig(Model_WorkspaceWidget $widget, $params, $params_prefix) {
	}
}


Extensions

Bot Behavior core.workspace.widget.datasource.bot
Data Query cerb.workspace.widget.datasource.data_query
Manual Input core.workspace.widget.datasource.manual
Sensor cerberusweb.datacenter.sensor.widget.datasource
URL core.workspace.widget.datasource.url
Worklist (Metric) core.workspace.widget.datasource.worklist.metric
Worklist (Series) core.workspace.widget.datasource.worklist.series