FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\Conf Class Reference

Conf model to contain general error and return values. More...

Collaboration diagram for Fossology\UI\Api\Models\Conf:
Collaboration graph

Public Member Functions

 __construct ($data=null)
 
 getJSON ()
 
 getArray ()
 
 getKeyColumnName ($key)
 
 doesKeyExist ($key)
 

Public Attributes

const KEY_MAP
 

Private Attributes

 $data
 

Detailed Description

Conf model to contain general error and return values.

Definition at line 22 of file Conf.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\Conf::__construct (   $data = null)

conf constructor.

Parameters
object | null$data

Definition at line 63 of file Conf.php.

Member Function Documentation

◆ doesKeyExist()

Fossology\UI\Api\Models\Conf::doesKeyExist (   $key)

Check key exists or not

Parameters
string$keyKey to check
Returns
boolean

Definition at line 126 of file Conf.php.

◆ getArray()

Fossology\UI\Api\Models\Conf::getArray ( )

Get info as associative array

Returns
array

Definition at line 83 of file Conf.php.

◆ getJSON()

Fossology\UI\Api\Models\Conf::getJSON ( )

Get the info as JSON representation

Returns
string

Definition at line 74 of file Conf.php.

◆ getKeyColumnName()

Fossology\UI\Api\Models\Conf::getKeyColumnName (   $key)

Get the DB column name for given key

Parameters
string$keyKey to get column name for
Returns
string

Definition at line 116 of file Conf.php.

Member Data Documentation

◆ $data

object Fossology\UI\Api\Models\Conf::$data
private

data for conf

Definition at line 28 of file Conf.php.

◆ KEY_MAP

const Fossology\UI\Api\Models\Conf::KEY_MAP
Initial value:
= [
'reviewed' => "ri_reviewed",
'footer' => "ri_footer",
'reportRel' => "ri_report_rel",
'community' => "ri_community",
'component' => "ri_component",
'version' => "ri_version",
'releaseDate' => "ri_release_date",
'sw360Link' => "ri_sw360_link",
'componentType' => "ri_component_type",
'componentId' => "ri_component_id",
'generalAssesment' => "ri_general_assesment",
'gaAdditional' => "ri_ga_additional",
'gaRisk' => "ri_ga_risk",
'gaCheckbox' => "ri_ga_checkbox_selection",
'spdxSelection' => "ri_spdx_selection",
'excludedObligations' => "ri_excluded_obligations",
'department' => "ri_department",
'depNotes' => "ri_depnotes",
'exportNotes' => "ri_exportnotes",
'copyrightNotes' => "ri_copyrightnotes",
'unifiedColumns' => "ri_unifiedcolumns",
'globalDecision' => "ri_globaldecision",
]

Definition at line 34 of file Conf.php.


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