FOSSology  4.4.0
Open Source License Compliance by Open Source Software
AdminContentMove Class Reference
Inheritance diagram for AdminContentMove:
Inheritance graph
Collaboration diagram for AdminContentMove:
Collaboration graph

Public Member Functions

 copyContent ($uploadIds, $parentFolderId, $isCopyRequest)
 
- 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 = 'content_move'
 
- 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

 RegisterMenus ()
 Customize submenus.
 
 handle (Request $request)
 
- Protected Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 render ($templateName, $vars=null, $headers=null)
 
 getDefaultHeaders ()
 
 getDefaultVars ()
 
 mergeWithDefault ($vars)
 
 flushContent ($content)
 

Private Member Functions

 performAction ($folderContentIds, $parentFolderId, $isCopyRequest)
 

Private Attributes

 $folderDao
 

Additional Inherited Members

- Protected Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
 $container
 
 $renderer
 
 $microMenu
 

Detailed Description

Definition at line 14 of file AdminContentMove.php.

Member Function Documentation

◆ copyContent()

AdminContentMove::copyContent (   $uploadIds,
  $parentFolderId,
  $isCopyRequest 
)

Move/Copy content of one folder to other.

Parameters
integer[]$uploadIdsUpload ids to copy/move
integer$parentFolderIdDestination folder id
boolean$isCopyRequestSet true to copy, false to move
Returns
string Empty string on success, error message on failure.
See also
performAction()

Definition at line 100 of file AdminContentMove.php.

◆ handle()

AdminContentMove::handle ( Request  $request)
protected
Parameters
Request$request
Returns
Response

Reimplemented from Fossology\Lib\Plugin\DefaultPlugin.

Definition at line 44 of file AdminContentMove.php.

◆ performAction()

AdminContentMove::performAction (   $folderContentIds,
  $parentFolderId,
  $isCopyRequest 
)
private

Move/Copy content of one folder to other.

Parameters
integer[]$folderContentIdsUpload ids to copy/move
integer$parentFolderIdDestination folder id
boolean$isCopyRequestSet true to copy, false to move
Returns
string Empty string on success, error message on failure.

Definition at line 70 of file AdminContentMove.php.


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