Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
DependentFilesGridDataProvider Class Reference

Inherits SubmissionFilesGridDataProvider.

Public Member Functions

 DependentFilesGridDataProvider ($assocId)
 
 getAddFileAction ($request)
 
 getAssocId ()
 
 isDependent ()
 
 loadData ()
 
- Public Member Functions inherited from SubmissionFilesGridDataProvider
 getAddFileAction ($request)
 
 getAuthorizationPolicy ($request, $args, $roleAssignments)
 
 getFileStage ()
 
 getRequestArgs ()
 
 getStageId ()
 
 loadData ()
 
 setStageId ($stageId)
 
 SubmissionFilesGridDataProvider ($fileStage, $viewableOnly=false)
 
- Public Member Functions inherited from FilesGridDataProvider
 FilesGridDataProvider ()
 
 getAddFileAction ($request)
 
 getSelectAction ($request)
 
getSubmission ()
 
 getUploaderGroupIds ()
 
 getUploaderRoles ()
 
prepareSubmissionFileData (&$revisions, $viewableOnly=false)
 
 setUploaderGroupIds ($uploaderGroupIds)
 
 setUploaderRoles ($roleAssignments)
 
 setViewableOnly ($viewableOnly)
 
- Public Member Functions inherited from GridDataProvider
 getAuthorizationPolicy ($request, $args, $roleAssignments)
 
getAuthorizedContextObject ($assocType)
 
 getRequestArgs ()
 
 GridDataProvider ()
 
 hasAuthorizedContextObject ($assocType)
 
 loadData ()
 
 setAuthorizedContext (&$authorizedContext)
 

Public Attributes

 $_assocId
 

Detailed Description

Provide access to dependent file data for grids.

Definition at line 19 of file DependentFilesGridDataProvider.inc.php.

Member Function Documentation

DependentFilesGridDataProvider::DependentFilesGridDataProvider (   $assocId)

Constructor

Parameters
$fileStageinteger One of the SUBMISSION_FILE_* constants.

Definition at line 34 of file DependentFilesGridDataProvider.inc.php.

DependentFilesGridDataProvider::getAddFileAction (   $request)

Overridden from SubmissionFilesGridDataProvider - we need to also include the assocType and assocId Configures and returns the action to add a file.

NB: Must be overridden by subclasses (if implemented).

Parameters
$requestRequest
Returns
AddFileLinkAction

Definition at line 56 of file DependentFilesGridDataProvider.inc.php.

DependentFilesGridDataProvider::getAssocId ( )

returns the id of the parent submission file for these dependent files.

Returns
int

Definition at line 71 of file DependentFilesGridDataProvider.inc.php.

DependentFilesGridDataProvider::isDependent ( )

Convenience function to make the argument to the AddFileLinkAction more obvious.

Returns
true

Definition at line 79 of file DependentFilesGridDataProvider.inc.php.

DependentFilesGridDataProvider::loadData ( )

Retrieve the data to load into the grid.

Returns
array

Definition at line 44 of file DependentFilesGridDataProvider.inc.php.

Member Data Documentation

int DependentFilesGridDataProvider::$_assocId

The submission file id for the parent file.

Definition at line 28 of file DependentFilesGridDataProvider.inc.php.


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