FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct (DbManager $dbManager) | |
getAllComments ($skipNotSet=false) | |
updateComment ($commentPk, $newName, $newComment) | |
insertComment ($name, $comment) | |
updateCommentFromArray ($commentArray) | |
Update the comments based only on the values provided. More... | |
getComment ($commentPk) | |
toggleComment ($commentPk) | |
Private Member Functions | |
isCommentIdValid ($commentPk) | |
Private Attributes | |
$dbManager | |
DAO layer for license_std_comment table.
Definition at line 22 of file LicenseStdCommentDao.php.
Fossology\Lib\Dao\LicenseStdCommentDao::getAllComments | ( | $skipNotSet = false | ) |
Get all the comments 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 LicenseStdCommentDao.php.
Fossology\Lib\Dao\LicenseStdCommentDao::getComment | ( | $commentPk | ) |
Get the comment for the given comment id
int | $commentPk | The comment id |
Definition at line 177 of file LicenseStdCommentDao.php.
Fossology\Lib\Dao\LicenseStdCommentDao::insertComment | ( | $name, | |
$comment | |||
) |
Insert a new comment
string | $name | Name of the comment |
string | $comment | Comment |
Definition at line 87 of file LicenseStdCommentDao.php.
|
private |
Check if the given comment id is an integer and exists in DB.
int | $commentPk | Comment id to check for |
Definition at line 221 of file LicenseStdCommentDao.php.
Fossology\Lib\Dao\LicenseStdCommentDao::toggleComment | ( | $commentPk | ) |
Toggle comment status.
int | $commentPk | The comment id |
Definition at line 197 of file LicenseStdCommentDao.php.
Fossology\Lib\Dao\LicenseStdCommentDao::updateComment | ( | $commentPk, | |
$newName, | |||
$newComment | |||
) |
Update single comment
int | $commentPk | The comment id |
string | $newName | New name of the comment |
string | $newComment | Updated comment |
Definition at line 59 of file LicenseStdCommentDao.php.
Fossology\Lib\Dao\LicenseStdCommentDao::updateCommentFromArray | ( | $commentArray | ) |
Update the comments based only on the values provided.
Takes an array as input and update only the fields passed.
array | $commentArray | Associative array with comment id as the index, name and comment as child index with corresponding values. |
Definition at line 131 of file LicenseStdCommentDao.php.
|
private |
DB manager in use
Definition at line 26 of file LicenseStdCommentDao.php.