dolibarr 21.0.0-beta
DolConfigCollector Class Reference

DolConfigCollector class. More...

Inheritance diagram for DolConfigCollector:
Collaboration diagram for DolConfigCollector:

Public Member Functions

 getWidgets ()
 Return widget settings.
 
 collect ()
 Return collected data.
 

Protected Member Functions

 getConfig ()
 Returns an array with config data.
 
 objectToArray ($obj)
 Convert an object to array.
 

Detailed Description

DolConfigCollector class.

Definition at line 31 of file DolConfigCollector.php.

Member Function Documentation

◆ collect()

DolConfigCollector::collect ( )

Return collected data.

Returns
array{count:int,messages:string[]} Array of collected data

Definition at line 57 of file DolConfigCollector.php.

References getConfig().

◆ getConfig()

DolConfigCollector::getConfig ( )
protected

Returns an array with config data.

Returns
array<string,array<string,string|mixed[]>> Array of config

Definition at line 69 of file DolConfigCollector.php.

References $conf, and objectToArray().

Referenced by collect().

◆ getWidgets()

DolConfigCollector::getWidgets ( )

Return widget settings.

Returns
array<string,array{icon?:string,widget?:string,tooltip?:string,map:string,default:string}> Array

Definition at line 38 of file DolConfigCollector.php.

◆ objectToArray()

DolConfigCollector::objectToArray ( $obj)
protected

Convert an object to array.

Parameters
mixed$objObject
Returns
array<string,mixed> Array

Definition at line 99 of file DolConfigCollector.php.

References objectToArray().

Referenced by getConfig(), and objectToArray().


The documentation for this class was generated from the following file: