FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\Upload Class Reference

Model class to hold Upload info. More...

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

Public Member Functions

 __construct ($folderId, $folderName, $uploadId, $description, $uploadName, $uploadDate, $fileSize, $fileSha1, $tag=NULL)
 
 getJSON ()
 
 getArray ()
 

Private Attributes

 $folderId
 
 $folderName
 
 $uploadId
 
 $description
 
 $uploadName
 
 $uploadDate
 
 $fileSize
 
 $fileSha1
 

Detailed Description

Model class to hold Upload info.

Definition at line 28 of file Upload.php.

Constructor & Destructor Documentation

Fossology\UI\Api\Models\Upload::__construct (   $folderId,
  $folderName,
  $uploadId,
  $description,
  $uploadName,
  $uploadDate,
  $fileSize,
  $fileSha1,
  $tag = NULL 
)

Upload constructor.

Parameters
integer$folderId
string$folderName
integer$uploadId
string$description
string$uploadName
string$uploadDate
integer$fileSize
string$fileSha1
string$tag

Definition at line 82 of file Upload.php.

Member Function Documentation

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

Get the upload element as an associative array

Returns
array

Definition at line 107 of file Upload.php.

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

Get current upload in JSON representation

Returns
string

Definition at line 98 of file Upload.php.

Member Data Documentation

string Fossology\UI\Api\Models\Upload::$description
private

Upload description

Definition at line 49 of file Upload.php.

string Fossology\UI\Api\Models\Upload::$fileSha1
private

SHA1 checksum of the uploaded file

Definition at line 69 of file Upload.php.

integer Fossology\UI\Api\Models\Upload::$fileSize
private

Upload size

Definition at line 64 of file Upload.php.

integer Fossology\UI\Api\Models\Upload::$folderId
private

Folder id holding the upload

Definition at line 34 of file Upload.php.

string Fossology\UI\Api\Models\Upload::$folderName
private

Folder name holding the upload

Definition at line 39 of file Upload.php.

string Fossology\UI\Api\Models\Upload::$uploadDate
private

Creation date of upload

Definition at line 59 of file Upload.php.

integer Fossology\UI\Api\Models\Upload::$uploadId
private

Current upload id

Definition at line 44 of file Upload.php.

string Fossology\UI\Api\Models\Upload::$uploadName
private

Upload name

Definition at line 54 of file Upload.php.


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