FOSSology  3.2.0rc1
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 29 of file SearchResult.php.

Constructor & Destructor Documentation

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

SearchResult constructor.

Parameters
Upload$upload
integer$uploadTreeId
string$filename

Definition at line 53 of file SearchResult.php.

Member Function Documentation

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

Get Search result element as an associative array

Returns
array

Definition at line 73 of file SearchResult.php.

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

Get current result as JSON

Returns
string

Definition at line 64 of file SearchResult.php.

Member Data Documentation

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

File name of current result

Definition at line 45 of file SearchResult.php.

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

Upload object from the search

Definition at line 35 of file SearchResult.php.

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

Upload tree id of current result

Definition at line 40 of file SearchResult.php.


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