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

Model to hold info required by Reuser agent. More...

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

Public Member Functions

 __construct ($reuseUpload, $reuseGroup, $reuseMain=false, $reuseEnhanced=false)
 
 setUsingArray ($reuserArray)
 
 getReuseUpload ()
 
 getReuseGroup ()
 
 getReuseMain ()
 
 getReuseEnhanced ()
 
 setReuseUpload ($reuseUpload)
 
 setReuseGroup ($reuseGroup)
 
 setReuseMain ($reuseMain)
 
 setReuseEnhanced ($reuseEnhanced)
 
 getArray ()
 

Private Attributes

 $reuseUpload
 
 $reuseGroup
 
 $reuseMain
 
 $reuseEnhanced
 

Detailed Description

Model to hold info required by Reuser agent.

Definition at line 28 of file Reuser.php.

Constructor & Destructor Documentation

Fossology\UI\Api\Models\Reuser::__construct (   $reuseUpload,
  $reuseGroup,
  $reuseMain = false,
  $reuseEnhanced = false 
)

Reuser constructor.

Parameters
integer$reuseUpload
integer$reuseGroup
boolean$reuseMain
boolean$reuseEnhanced
Exceptions

Definition at line 61 of file Reuser.php.

Member Function Documentation

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

Get reuser info as an associative array

Returns
array

Definition at line 188 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::getReuseEnhanced ( )
Returns
boolean

Definition at line 136 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::getReuseGroup ( )
Returns
integer

Definition at line 120 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::getReuseMain ( )
Returns
boolean

Definition at line 128 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::getReuseUpload ( )
Returns
integer

Definition at line 112 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::setReuseEnhanced (   $reuseEnhanced)
Parameters
boolean$reuseEnhanced

Definition at line 178 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::setReuseGroup (   $reuseGroup)
Parameters
integer$reuseGroup

Definition at line 157 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::setReuseMain (   $reuseMain)
Parameters
boolean$reuseMain

Definition at line 169 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::setReuseUpload (   $reuseUpload)
Parameters
integer$reuseUpload

Definition at line 145 of file Reuser.php.

Fossology\UI\Api\Models\Reuser::setUsingArray (   $reuserArray)

Set the values of Reuser based on associative array

Parameters
array$reuserArrayAssociative boolean array
Returns
Reuser Current object
Exceptions

Definition at line 83 of file Reuser.php.

Member Data Documentation

boolean Fossology\UI\Api\Models\Reuser::$reuseEnhanced
private

Use enhanced reuse

Definition at line 49 of file Reuser.php.

integer Fossology\UI\Api\Models\Reuser::$reuseGroup
private

Group id to reuse from

Definition at line 39 of file Reuser.php.

boolean Fossology\UI\Api\Models\Reuser::$reuseMain
private

Reuse main license

Definition at line 44 of file Reuser.php.

integer Fossology\UI\Api\Models\Reuser::$reuseUpload
private

Upload id to reuse

Definition at line 34 of file Reuser.php.


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