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

Model to hold search results. More...

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

Public Member Functions

 __construct ($upload, $uploadTreeId, $filename)
 
 getJSON ()
 
 getArray ()
 

Private Attributes

 $upload
 
 $uploadTreeId
 
 $filename
 

Detailed Description

Model to hold search results.

Definition at line 18 of file SearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\UI\Api\Models\SearchResult::__construct (   $upload,
  $uploadTreeId,
  $filename 
)

SearchResult constructor.

Parameters
Upload$upload
integer$uploadTreeId
string$filename

Definition at line 42 of file SearchResult.php.

Member Function Documentation

◆ getArray()

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

Get Search result element as an associative array

Returns
array

Definition at line 62 of file SearchResult.php.

◆ getJSON()

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

Get current result as JSON

Returns
string

Definition at line 53 of file SearchResult.php.

Member Data Documentation

◆ $filename

string Fossology\UI\Api\Models\SearchResult::$filename
private

File name of current result

Definition at line 34 of file SearchResult.php.

◆ $upload

array Fossology\UI\Api\Models\SearchResult::$upload
private

Upload object from the search

Definition at line 24 of file SearchResult.php.

◆ $uploadTreeId

integer Fossology\UI\Api\Models\SearchResult::$uploadTreeId
private

Upload tree id of current result

Definition at line 29 of file SearchResult.php.


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