FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager) | |
getAllAcknowledgements ($skipNotSet=false) | |
updateAcknowledgement ($acknowledgementPk, $newName, $newAcknowledgement) | |
insertAcknowledgement ($name, $acknowledgement) | |
updateAcknowledgementFromArray ($acknowledgementArray) | |
Update the acknowledgements based only on the values provided. More... | |
getAcknowledgement ($acknowledgementPk) | |
toggleAcknowledgement ($acknowledgementPk) | |
Private Member Functions | |
isAcknowledgementIdValid ($acknowledgementPk) | |
Private Attributes | |
$dbManager | |
DAO layer for license_std_acknowledgement table.
Definition at line 22 of file LicenseAcknowledgementDao.php.
Fossology\Lib\Dao\LicenseAcknowledgementDao::getAcknowledgement | ( | $acknowledgementPk | ) |
Get the acknowledgement for the given acknowledgement id
int | $acknowledgementPk | The acknowledgement id |
Definition at line 177 of file LicenseAcknowledgementDao.php.
Fossology\Lib\Dao\LicenseAcknowledgementDao::getAllAcknowledgements | ( | $skipNotSet = false | ) |
Get all the acknowledgements and their name stored in the DB, sorted by their ID in ascending order.
boolean | $skipNotSet | Skip the entries where the name is not changed or are disabled. |
Definition at line 40 of file LicenseAcknowledgementDao.php.
Fossology\Lib\Dao\LicenseAcknowledgementDao::insertAcknowledgement | ( | $name, | |
$acknowledgement | |||
) |
Insert a new acknowledgement
string | $name | Name of the acknowledgement |
string | $acknowledgement | Acknowledgement |
Definition at line 87 of file LicenseAcknowledgementDao.php.
|
private |
Check if the given acknowledgement id is an integer and exists in DB.
int | $acknowledgementPk | Acknowledgement id to check for |
Definition at line 221 of file LicenseAcknowledgementDao.php.
Fossology\Lib\Dao\LicenseAcknowledgementDao::toggleAcknowledgement | ( | $acknowledgementPk | ) |
Toggle acknowledgement status.
int | $acknowledgementPk | The acknowledgement id |
Definition at line 197 of file LicenseAcknowledgementDao.php.
Fossology\Lib\Dao\LicenseAcknowledgementDao::updateAcknowledgement | ( | $acknowledgementPk, | |
$newName, | |||
$newAcknowledgement | |||
) |
Update single acknowledgement
int | $acknowledgementPk | The acknowledgement id |
string | $newName | New name of the acknowledgement |
string | $newAcknowledgement | Updated acknowledgement |
Definition at line 59 of file LicenseAcknowledgementDao.php.
Fossology\Lib\Dao\LicenseAcknowledgementDao::updateAcknowledgementFromArray | ( | $acknowledgementArray | ) |
Update the acknowledgements based only on the values provided.
Takes an array as input and update only the fields passed.
array | $acknowledgementArray | Associative array with acknowledgement id as the index, name and acknowledgement as child index with corresponding values. |
Definition at line 131 of file LicenseAcknowledgementDao.php.
|
private |
DB manager in use
Definition at line 26 of file LicenseAcknowledgementDao.php.