mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
adding some comments
This commit is contained in:
@@ -25,6 +25,8 @@ class WidgetBar implements WidgetProviderInterface
|
|||||||
{
|
{
|
||||||
// Process the data for the bar widget
|
// Process the data for the bar widget
|
||||||
// In this example, we assume the data is an array of numbers
|
// In this example, we assume the data is an array of numbers
|
||||||
|
// Here, I think we suppose to make a query to the database to get some number
|
||||||
|
// For now just sending a number
|
||||||
$barData = $data['bar'];
|
$barData = $data['bar'];
|
||||||
|
|
||||||
// Return the widget data as an associative array
|
// Return the widget data as an associative array
|
||||||
|
@@ -24,6 +24,8 @@ class WidgetNumber implements WidgetProviderInterface{
|
|||||||
{
|
{
|
||||||
// Process the data for the number widget
|
// Process the data for the number widget
|
||||||
// We suppose that its only a single number
|
// We suppose that its only a single number
|
||||||
|
// Here, I think we suppose to make a query to the database to get some number
|
||||||
|
// For now just sending a number
|
||||||
$numberData = $data['number'];
|
$numberData = $data['number'];
|
||||||
|
|
||||||
// Return the widget data as an associative array
|
// Return the widget data as an associative array
|
||||||
|
Reference in New Issue
Block a user