FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
UI plugin for reuser. More...
Public Member Functions | |
getAllUploads () | |
Get all uploads accessible to curent user. More... | |
getFolderIdAndTrustGroup ($folderGroup) | |
For a given folder group, extract forder id and trust group id. More... | |
renderContent (&$vars) | |
Load the data in array and render twig template. More... | |
renderFoot (&$vars) | |
Render footer template. More... | |
Public Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin | |
__construct ($name, $parameters=array()) | |
getName () | |
getVersion () | |
getTitle () | |
isRequiresLogin () | |
getDependency () | |
getPluginLevel () | |
getDBaccess () | |
getState () | |
getInitOrder () | |
getNoMenu () | |
getResponse () | |
getObject ($name) | |
preInstall () | |
postInstall () | |
unInstall () | |
execute () | |
isLoggedIn () | |
__get ($name) | |
__toString () | |
Public Attributes | |
const | NAME = "plugin_reuser" |
UI mod name. | |
const | REUSE_FOLDER_SELECTOR_NAME = 'reuseFolderSelectorName' |
Reuse upload folder element name. | |
const | UPLOAD_TO_REUSE_SELECTOR_NAME = 'uploadToReuse' |
Upload to reuse HTML element name. | |
const | FOLDER_PARAMETER_NAME = 'folder' |
Folder parameter HTML element name. | |
$AgentName = 'agent_reuser' | |
Public Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin | |
const | PERMISSION = "permission" |
const | REQUIRES_LOGIN = "requiresLogin" |
const | ENABLE_MENU = "ENABLE_MENU" |
const | LEVEL = "level" |
const | DEPENDENCIES = "dependencies" |
const | INIT_ORDER = "initOrder" |
const | MENU_LIST = "menuList" |
const | MENU_ORDER = "menuOrder" |
const | MENU_TARGET = "menuTarget" |
const | TITLE = "title" |
Protected Member Functions | |
handle (Request $request) | |
prepareFolderUploads ($folderId, $trustGroupId=null) | |
For a given folder id, collect all uploads. More... | |
Protected Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin | |
RegisterMenus () | |
Customize submenus. | |
handle (Request $request) | |
render ($templateName, $vars=null, $headers=null) | |
getDefaultHeaders () | |
getDefaultVars () | |
mergeWithDefault ($vars) | |
flushContent ($content) | |
Private Attributes | |
$folderDao | |
Additional Inherited Members | |
Protected Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin | |
$container | |
$renderer | |
$microMenu | |
UI plugin for reuser.
Definition at line 36 of file reuser-plugin.php.
Fossology\Reuser\ReuserPlugin::getAllUploads | ( | ) |
Get all uploads accessible to curent user.
Gets all folders accessible by current user and iterate them. Find every upload with in that folder and add data from prepareFolderUploads().
Definition at line 70 of file reuser-plugin.php.
Fossology\Reuser\ReuserPlugin::getFolderIdAndTrustGroup | ( | $folderGroup | ) |
For a given folder group, extract forder id and trust group id.
array | $folderGroup |
Definition at line 111 of file reuser-plugin.php.
|
protected |
|
protected |
For a given folder id, collect all uploads.
Creates an array of uploads with <upload_id,group_id>
as the key and <upload_name> from <Y-m-d H:i> (<status>)
as value.
int | $folderId | |
int | $trustGroupId |
Definition at line 178 of file reuser-plugin.php.
Fossology\Reuser\ReuserPlugin::renderContent | ( | & | $vars | ) |
Load the data in array and render twig template.
[in,out] | array | $vars |
Definition at line 130 of file reuser-plugin.php.
Fossology\Reuser\ReuserPlugin::renderFoot | ( | & | $vars | ) |
Render footer template.
array | $vars |
Definition at line 160 of file reuser-plugin.php.
string Fossology\Reuser\ReuserPlugin::$AgentName = 'agent_reuser' |
Agent name from DB
Definition at line 47 of file reuser-plugin.php.
|
private |
Folder Dao object
Definition at line 51 of file reuser-plugin.php.