FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Dao\SysConfigDao Class Reference
Collaboration diagram for Fossology\Lib\Dao\SysConfigDao:
Collaboration graph

Public Member Functions

 __construct (DbManager $dbManager, Logger $logger)
 
 getConfigData ()
 Fetch configuration rows.
 
 getBannerData ()
 Fetch banner message.
 
 getCustomiseData ($data, $apiVersion=ApiVersion::V1)
 
 UpdateConfigData ($data)
 Update Configuration Data. More...
 

Public Attributes

const TYPE_MAP
 

Private Attributes

 $dbManager
 
 $logger
 

Detailed Description

Definition at line 15 of file SysConfigDao.php.

Member Function Documentation

◆ getCustomiseData()

Fossology\Lib\Dao\SysConfigDao::getCustomiseData (   $data,
  $apiVersion = ApiVersion::V1 
)

Get all customise information for admin

Parameters
array$dataArray of data from the sysconfig table
Returns
array

Definition at line 59 of file SysConfigDao.php.

◆ UpdateConfigData()

Fossology\Lib\Dao\SysConfigDao::UpdateConfigData (   $data)

Update Configuration Data.

Update the sysconfig data after validating the value.

Returns
array[bool, string] true on success, false on failure with error message

Definition at line 96 of file SysConfigDao.php.

Member Data Documentation

◆ TYPE_MAP

const Fossology\Lib\Dao\SysConfigDao::TYPE_MAP
Initial value:
= array(
'1' => "int",
'2' => "text",
'3' => "textarea",
'4' => "password",
'5' => "dropdown",
'6' => "boolean"
)

Definition at line 17 of file SysConfigDao.php.


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