|
static | fromArray ($db, $extended, $licenses, $candidateLicenses) |
|
Definition at line 19 of file Obligation.php.
◆ __construct()
Fossology\UI\Api\Models\Obligation::__construct |
( |
|
$id, |
|
|
|
$topic = "" , |
|
|
|
$type = "" , |
|
|
|
$text = "" , |
|
|
|
$classification = "" , |
|
|
|
$comment = "" , |
|
|
|
$extended = false |
|
) |
| |
Obligation constructor.
- Parameters
-
integer | $id | |
string | $topic | |
string | $type | |
string | $text | |
string | $classification | |
string | $comment | |
boolean | $extended | |
Definition at line 98 of file Obligation.php.
◆ addCandidateLicense()
Fossology\UI\Api\Models\Obligation::addCandidateLicense |
( |
|
$shortname | ) |
|
Associate another candidate license
- Parameters
-
string | $shortname | Candidate license to add |
Definition at line 366 of file Obligation.php.
◆ addLicense()
Fossology\UI\Api\Models\Obligation::addLicense |
( |
|
$shortname | ) |
|
◆ fromArray()
static Fossology\UI\Api\Models\Obligation::fromArray |
( |
|
$db, |
|
|
|
$extended, |
|
|
|
$licenses, |
|
|
|
$candidateLicenses |
|
) |
| |
|
static |
From DB array to Obligation object
- Parameters
-
array | $db | Array from DB |
boolean | $extended | Extended info on obligation |
array | $licenses | Array of associated license shortnames |
array | $candidateLicenses | Array of associated candidate license shortnames |
- Returns
- Obligation New obligation object
Definition at line 392 of file Obligation.php.
◆ getArray()
Fossology\UI\Api\Models\Obligation::getArray |
( |
| ) |
|
◆ getCandidateLicenses()
Fossology\UI\Api\Models\Obligation::getCandidateLicenses |
( |
| ) |
|
◆ getClassification()
Fossology\UI\Api\Models\Obligation::getClassification |
( |
| ) |
|
Get the obligation's classification
- Returns
- string
Definition at line 187 of file Obligation.php.
◆ getComment()
Fossology\UI\Api\Models\Obligation::getComment |
( |
| ) |
|
Get the comment on the obligation
- Returns
- string
Definition at line 199 of file Obligation.php.
◆ getExtended()
Fossology\UI\Api\Models\Obligation::getExtended |
( |
| ) |
|
Get if extended info on obligation
- Returns
- bool
Definition at line 259 of file Obligation.php.
◆ getHash()
Fossology\UI\Api\Models\Obligation::getHash |
( |
| ) |
|
◆ getJSON()
Fossology\UI\Api\Models\Obligation::getJSON |
( |
| ) |
|
JSON representation of the license
- Returns
- string
Definition at line 117 of file Obligation.php.
◆ getLicenses()
Fossology\UI\Api\Models\Obligation::getLicenses |
( |
| ) |
|
◆ getText()
Fossology\UI\Api\Models\Obligation::getText |
( |
| ) |
|
Get the text of the obligation
- Returns
- string
Definition at line 175 of file Obligation.php.
◆ getTopic()
Fossology\UI\Api\Models\Obligation::getTopic |
( |
| ) |
|
Get the topic of the obligation
- Returns
- string
Definition at line 151 of file Obligation.php.
◆ getType()
Fossology\UI\Api\Models\Obligation::getType |
( |
| ) |
|
Get the type of the obligation
- Returns
- string
Definition at line 163 of file Obligation.php.
◆ isActive()
Fossology\UI\Api\Models\Obligation::isActive |
( |
| ) |
|
◆ isModification()
Fossology\UI\Api\Models\Obligation::isModification |
( |
| ) |
|
◆ isTextUpdatable()
Fossology\UI\Api\Models\Obligation::isTextUpdatable |
( |
| ) |
|
◆ setActive()
Fossology\UI\Api\Models\Obligation::setActive |
( |
|
$active | ) |
|
◆ setClassification()
Fossology\UI\Api\Models\Obligation::setClassification |
( |
|
$classification | ) |
|
Set the obligation's classification
- Parameters
-
Definition at line 295 of file Obligation.php.
◆ setComment()
Fossology\UI\Api\Models\Obligation::setComment |
( |
|
$comment | ) |
|
Set the comment on the obligation
- Parameters
-
Definition at line 304 of file Obligation.php.
◆ setExtended()
Fossology\UI\Api\Models\Obligation::setExtended |
( |
|
$extended | ) |
|
◆ setHash()
Fossology\UI\Api\Models\Obligation::setHash |
( |
|
$hash | ) |
|
◆ setModification()
Fossology\UI\Api\Models\Obligation::setModification |
( |
|
$modification | ) |
|
◆ setText()
Fossology\UI\Api\Models\Obligation::setText |
( |
|
$text | ) |
|
Set the text of the obligation
- Parameters
-
Definition at line 286 of file Obligation.php.
◆ setTextUpdatable()
Fossology\UI\Api\Models\Obligation::setTextUpdatable |
( |
|
$textUpdatable | ) |
|
◆ setTopic()
Fossology\UI\Api\Models\Obligation::setTopic |
( |
|
$topic | ) |
|
Set the topic of the obligation
- Parameters
-
Definition at line 268 of file Obligation.php.
◆ setType()
Fossology\UI\Api\Models\Obligation::setType |
( |
|
$type | ) |
|
Set the type of the obligation
- Parameters
-
Definition at line 277 of file Obligation.php.
◆ $active
bool Fossology\UI\Api\Models\Obligation::$active |
|
private |
◆ $candidateLicenses
array Fossology\UI\Api\Models\Obligation::$candidateLicenses |
|
private |
List of candidate license shortnames associated
Definition at line 80 of file Obligation.php.
◆ $classification
string Fossology\UI\Api\Models\Obligation::$classification |
|
private |
◆ $comment
string Fossology\UI\Api\Models\Obligation::$comment |
|
private |
◆ $extended
bool Fossology\UI\Api\Models\Obligation::$extended |
|
private |
◆ $hash
string Fossology\UI\Api\Models\Obligation::$hash |
|
private |
◆ $id
integer Fossology\UI\Api\Models\Obligation::$id |
|
private |
◆ $licenses
array Fossology\UI\Api\Models\Obligation::$licenses |
|
private |
List of license shortnames associated
Definition at line 75 of file Obligation.php.
◆ $modification
bool Fossology\UI\Api\Models\Obligation::$modification |
|
private |
◆ $text
string Fossology\UI\Api\Models\Obligation::$text |
|
private |
◆ $textUpdatable
bool Fossology\UI\Api\Models\Obligation::$textUpdatable |
|
private |
◆ $topic
string Fossology\UI\Api\Models\Obligation::$topic |
|
private |
◆ $type
string Fossology\UI\Api\Models\Obligation::$type |
|
private |
The documentation for this class was generated from the following file: