Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
PKPSubmissionFileDAO Class Reference
Inheritance diagram for PKPSubmissionFileDAO:
PKPFileDAO DAO

Public Member Functions

 _buildFileSelectionFilter ($submissionId, $fileStage, $fileId, $revision, $assocType, $assocId, $stageId, $uploaderUserId, $uploaderUserGroupId, $round, $reviewRoundId)
 
_castToDatabase (&$submissionFile)
 
_castToGenre (&$submissionFile)
 
_checkAndReturnRevision (&$revisions)
 
 _deleteInternally ($submissionId=null, $fileStage=null, $fileId=null, $revision=null, $assocType=null, $assocId=null, $stageId=null, $uploaderUserId=null, $uploaderUserGroupId=null, $round=null, $latestOnly=false)
 
_getDaoDelegate ($fileImplementation)
 
_getDaoDelegateForGenreId ($genreId)
 
_getDaoDelegateForObject (&$object)
 
_getFileImplementationForGenreId ($genreId)
 
_getInternally ($submissionId=null, $fileStage=null, $fileId=null, $revision=null, $assocType=null, $assocId=null, $stageId=null, $uploaderUserId=null, $uploaderUserGroupId=null, $round=null, $reviewRoundId=null, $latestOnly=false, $rangeInfo=null)
 
 assignRevisionToReviewRound ($fileId, $revision, $stageId, $reviewRoundId, $submissionId)
 
 baseQueryForFileSelection ()
 
 deleteAllRevisionsByAssocId ($assocType, $assocId, $fileStage=null)
 
 deleteAllRevisionsById ($fileId, $fileStage=null, $submissionId=null)
 
 deleteAllRevisionsByReviewRound ($submissionId, $stageId, $reviewRoundId)
 
 deleteAllRevisionsBySubmissionId ($submissionId, $fileStage=null)
 
 deleteLatestRevisionById ($fileId, $fileStage=null, $submissionId=null)
 
 deleteReviewRoundAssignment ($submissionId, $stageId, $fileId, $revision)
 
 deleteRevision (&$submissionFile)
 
 deleteRevisionById ($fileId, $revision, $fileStage=null, $submissionId=null)
 
fromRow (&$row, $fileImplementation)
 
getAllRevisions ($fileId, $fileStage=null, $submissionId=null, $rangeInfo=null)
 
getAllRevisionsByAssocId ($assocType, $assocId, $fileStage=null, $rangeInfo=null)
 
 getDelegateClassNames ()
 
 getGenreCategoryMapping ()
 
getLatestNewRevisionsByReviewRound ($submissionId, $stageId, $round, $fileStage=null)
 
getLatestRevision ($fileId, $fileStage=null, $submissionId=null)
 
 getLatestRevisionNumber ($fileId)
 
getLatestRevisions ($submissionId, $fileStage=null, $rangeInfo=null)
 
getLatestRevisionsByAssocId ($assocType, $assocId, $submissionId=null, $fileStage=null, $rangeInfo=null)
 
getRevision ($fileId, $revision, $fileStage=null, $submissionId=null)
 
getRevisionsByReviewRound ($submissionId, $stageId, $round, $fileStage=null, $uploaderUserId=null, $uploaderUserGroupId=null)
 
 getSubmissionEntityName ()
 
insertObject (&$submissionFile, $sourceFile, $isUpload=false)
 
newDataObjectByGenreId ($genreId)
 
 PKPSubmissionFileDAO ()
 
setAsLatestRevision ($revisedFileId, $newFileId, $submissionId, $fileStage)
 
 transferOwnership ($oldUserId, $newUserId)
 
updateObject (&$updatedFile, $previousFileId=null, $previousRevision=null)
 
- Public Member Functions inherited from PKPFileDAO
 isInlineable ($file)
 
 PKPFileDAO ()
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Abstract base class for retrieving and modifying SubmissionFile objects and their decendents (e.g. MonographFile, ArtworkFile).

See Also
SubmissionFile
SubmissionFileDAODelegate

This class provides access to all SubmissionFile implementations. It instantiates and uses delegates internally to provide the right database access behaviour depending on the type of the accessed file.

The state classes are named after the data object plus the "DAODelegate" extension, e.g. ArtworkFileDAODelegate. An internal factory method will provide the correct implementation to the DAO.

This design allows clients to access all types of files without having to know about the specific file implementation unless the client really wishes to access file implementation specific data. This also enables us to let delegates inherit from each others to avoid code duplication between DAO implementations.

Definition at line 36 of file PKPSubmissionFileDAO.inc.php.

Member Function Documentation

PKPSubmissionFileDAO::_buildFileSelectionFilter (   $submissionId,
  $fileStage,
  $fileId,
  $revision,
  $assocType,
  $assocId,
  $stageId,
  $uploaderUserId,
  $uploaderUserGroupId,
  $round,
  $reviewRoundId 
)

Build an SQL where clause to select submissions based on the given filter information.

Parameters
$submissionIdinteger
$fileStageinteger
$fileIdinteger
$revisioninteger
$assocTypeinteger
$assocIdinteger
$stageIdinteger
$uploaderUserIdinteger
$uploaderUserGroupIdinteger
$roundinteger
$reviewRoundIdinteger
Returns
array an array that contains the generated SQL filter clause and the corresponding parameters.

Definition at line 823 of file PKPSubmissionFileDAO.inc.php.

References getSubmissionEntityName().

Referenced by _getInternally().

& PKPSubmissionFileDAO::_castToDatabase ( $submissionFile)

Make sure that a file's implementation corresponds to the way it is saved in the database.

Parameters
$submissionFileSubmissionFile
Returns
SubmissionFile

Definition at line 913 of file PKPSubmissionFileDAO.inc.php.

References getRevision().

Referenced by insertObject(), and updateObject().

& PKPSubmissionFileDAO::_castToGenre ( $submissionFile)

Make sure that the genre of the file and its file implementation are compatible.

NB: In the case of a downcast this means that not all data in the object will be saved to the database. It is the UI's responsibility to inform users about potential loss of data if they change to a genre that permits less meta-data than the prior genre!

Parameters
$submissionFileSubmissionFile
Returns
SubmissionFile The same file in a compatible implementation.

Definition at line 883 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegate(), and _getFileImplementationForGenreId().

Referenced by insertObject(), and updateObject().

& PKPSubmissionFileDAO::_checkAndReturnRevision ( $revisions)

Check whether the given array contains exactly zero or one revisions and return it.

Parameters
$revisionsarray
Returns
SubmissionFile

Definition at line 926 of file PKPSubmissionFileDAO.inc.php.

Referenced by getLatestRevision(), and getRevision().

PKPSubmissionFileDAO::_deleteInternally (   $submissionId = null,
  $fileStage = null,
  $fileId = null,
  $revision = null,
  $assocType = null,
  $assocId = null,
  $stageId = null,
  $uploaderUserId = null,
  $uploaderUserGroupId = null,
  $round = null,
  $latestOnly = false 
)

Private method to delete submission file revisions according to the given filters.

Parameters
$submissionIdinteger
$fileStageinteger
$fileIdinteger
$revisioninteger
$assocTypeinteger
$assocIdinteger
$stageIdinteger
$uploaderUserIdinteger
$uploaderUserGroupIdinteger
$roundinteger
$latestOnlyboolean
Returns
boolean|integer Returns boolean false if an error occurs, otherwise the number of deleted files.

Definition at line 779 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegateForObject(), and _getInternally().

Referenced by deleteAllRevisionsByAssocId(), deleteAllRevisionsById(), deleteAllRevisionsBySubmissionId(), deleteLatestRevisionById(), and deleteRevisionById().

& PKPSubmissionFileDAO::_getDaoDelegate (   $fileImplementation)

Return the requested SubmissionFileDAODelegate.

Parameters
$fileImplementationstring the class name of a file implementation that the requested delegate should serve.
Returns
SubmissionFileDAODelegate

Definition at line 646 of file PKPSubmissionFileDAO.inc.php.

References getDelegateClassNames().

Referenced by _castToGenre(), _getDaoDelegateForGenreId(), _getDaoDelegateForObject(), fromRow(), insertObject(), and updateObject().

& PKPSubmissionFileDAO::_getDaoDelegateForGenreId (   $genreId)

Instantiates an approprate SubmissionFileDAODelegate based on the given genre identifier.

Parameters
$genreIdinteger
Returns
SubmissionFileDAODelegate

Definition at line 621 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegate(), and _getFileImplementationForGenreId().

Referenced by newDataObjectByGenreId().

& PKPSubmissionFileDAO::_getDaoDelegateForObject ( $object)

Instantiates an appropriate SubmissionFileDAODelegate based on the given SubmissionFile.

Parameters
$objectSubmissionFile
Returns
SubmissionFileDAODelegate

Definition at line 635 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegate().

Referenced by _deleteInternally(), and transferOwnership().

& PKPSubmissionFileDAO::_getFileImplementationForGenreId (   $genreId)

Map a genre to the corresponding file implementation.

Parameters
$genreIdinteger
Returns
string The class name of the file implementation.

Definition at line 597 of file PKPSubmissionFileDAO.inc.php.

References DAORegistry\getDAO(), and getGenreCategoryMapping().

Referenced by _castToGenre(), _getDaoDelegateForGenreId(), insertObject(), and updateObject().

& PKPSubmissionFileDAO::_getInternally (   $submissionId = null,
  $fileStage = null,
  $fileId = null,
  $revision = null,
  $assocType = null,
  $assocId = null,
  $stageId = null,
  $uploaderUserId = null,
  $uploaderUserGroupId = null,
  $round = null,
  $reviewRoundId = null,
  $latestOnly = false,
  $rangeInfo = null 
)

Private method to retrieve submission file revisions according to the given filters.

Parameters
$submissionIdinteger
$fileStageinteger
$fileIdinteger
$revisioninteger
$assocTypeinteger
$assocIdinteger
$stageIdinteger
$roundinteger
$latestOnlyboolean
$rangeInfoDBResultRange
Returns
array a list of SubmissionFile instances

Definition at line 678 of file PKPSubmissionFileDAO.inc.php.

References _buildFileSelectionFilter(), baseQueryForFileSelection(), fromRow(), getSubmissionEntityName(), DAO\retrieve(), and DAO\retrieveRange().

Referenced by _deleteInternally(), getAllRevisions(), getAllRevisionsByAssocId(), getLatestNewRevisionsByReviewRound(), getLatestRevision(), getLatestRevisions(), getLatestRevisionsByAssocId(), getRevision(), getRevisionsByReviewRound(), and transferOwnership().

PKPSubmissionFileDAO::assignRevisionToReviewRound (   $fileId,
  $revision,
  $stageId,
  $reviewRoundId,
  $submissionId 
)

Assign file to a review round.

Parameters
$fileIdint The file to be assigned.
$revisionint The revision of the file to be assigned.
$stageIdint The review round type.
$reviewRoundIdint The review round number.
$submissionIdint The submission id of the file.

Definition at line 384 of file PKPSubmissionFileDAO.inc.php.

References getSubmissionEntityName(), and DAO\update().

PKPSubmissionFileDAO::baseQueryForFileSelection ( )

Return the basic join over all file class tables.

Returns
string

Definition at line 566 of file PKPSubmissionFileDAO.inc.php.

Referenced by _getInternally().

PKPSubmissionFileDAO::deleteAllRevisionsByAssocId (   $assocType,
  $assocId,
  $fileStage = null 
)

Retrieve all files associated to a certain object.

Parameters
$assocTypeint
$assocIdint
$fileStageint (optional) further restricts the selection to a given file stage.
Returns
integer the number of deleted file revisions

Definition at line 462 of file PKPSubmissionFileDAO.inc.php.

References _deleteInternally().

PKPSubmissionFileDAO::deleteAllRevisionsById (   $fileId,
  $fileStage = null,
  $submissionId = null 
)

Delete all revisions of a file, optionally restricted to a given file stage.

Parameters
$fileIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$submissionIdint (optional) for validation purposes only
Returns
integer the number of deleted file revisions

Definition at line 438 of file PKPSubmissionFileDAO.inc.php.

References _deleteInternally().

PKPSubmissionFileDAO::deleteAllRevisionsByReviewRound (   $submissionId,
  $stageId,
  $reviewRoundId 
)

Remove all file assignements for the given review round.

Parameters
$submissionIdint The submission id of the file
$stageIdint The review round type.
$reviewRoundIdint The review round number.

Definition at line 473 of file PKPSubmissionFileDAO.inc.php.

References getSubmissionEntityName(), and DAO\update().

PKPSubmissionFileDAO::deleteAllRevisionsBySubmissionId (   $submissionId,
  $fileStage = null 
)

Delete all revisions of all files of a submission, optionally restricted to a given file stage.

Parameters
$submissionIdint
$fileStageint (optional) further restricts the selection to a given file stage.
Returns
integer the number of deleted file revisions

Definition at line 450 of file PKPSubmissionFileDAO.inc.php.

References _deleteInternally().

PKPSubmissionFileDAO::deleteLatestRevisionById (   $fileId,
  $fileStage = null,
  $submissionId = null 
)

Delete the latest revision of a submission file by id.

Parameters
$fileIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$submissionIdint (optional) for validation purposes only
Returns
integer the number of deleted file revisions

Definition at line 424 of file PKPSubmissionFileDAO.inc.php.

References _deleteInternally().

PKPSubmissionFileDAO::deleteReviewRoundAssignment (   $submissionId,
  $stageId,
  $fileId,
  $revision 
)

Remove a specific file assignment from a review round.

Parameters
$submissionIdint The submission id of the file
$stageIdint The review round type.
$fileIdint The file id
$revisionint The file revision

Definition at line 488 of file PKPSubmissionFileDAO.inc.php.

References getSubmissionEntityName(), and DAO\update().

PKPSubmissionFileDAO::deleteRevision ( $submissionFile)

Delete a specific revision of a submission file.

Parameters
$submissionFileSubmissionFile
Returns
integer the number of deleted file revisions

Definition at line 397 of file PKPSubmissionFileDAO.inc.php.

References deleteRevisionById().

PKPSubmissionFileDAO::deleteRevisionById (   $fileId,
  $revision,
  $fileStage = null,
  $submissionId = null 
)

Delete a specific revision of a submission file by id.

Parameters
$fileIdint
$revisionint
$fileStageint (optional) further restricts the selection to a given file stage.
$submissionIdint (optional) for validation purposes only
Returns
integer the number of deleted file revisions

Definition at line 411 of file PKPSubmissionFileDAO.inc.php.

References _deleteInternally().

Referenced by deleteRevision().

& PKPSubmissionFileDAO::fromRow ( $row,
  $fileImplementation 
)

Internal function to return a SubmissionFile object from a row.

Parameters
$rowarray
$fileImplementationstring
Returns
SubmissionFile

Definition at line 580 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegate().

Referenced by _getInternally().

& PKPSubmissionFileDAO::getAllRevisions (   $fileId,
  $fileStage = null,
  $submissionId = null,
  $rangeInfo = null 
)

Retrieve all revisions of a submission file.

Parameters
$fileIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$submissionIdint (optional) for validation purposes only
$rangeInfoDBResultRange (optional)
Returns
array a list of SubmissionFile instances

Definition at line 117 of file PKPSubmissionFileDAO.inc.php.

References _getInternally().

& PKPSubmissionFileDAO::getAllRevisionsByAssocId (   $assocType,
  $assocId,
  $fileStage = null,
  $rangeInfo = null 
)

Retrieve all files associated to a certain object.

Parameters
$assocTypeint
$assocIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$rangeInfoDBResultRange (optional)
Returns
array a list of SubmissionFile instances

Definition at line 152 of file PKPSubmissionFileDAO.inc.php.

References _getInternally().

PKPSubmissionFileDAO::getDelegateClassNames ( )

Return the available delegates mapped by lower case class names.

Returns
array a list of fully qualified class names indexed by the lower case class name of the file implementation they serve. NB: Be careful to order class names such that they can be called in the given order to delete files without offending foreign key constraints, i.e. place the sub-classes before the super-classes.

Definition at line 548 of file PKPSubmissionFileDAO.inc.php.

Referenced by _getDaoDelegate().

PKPSubmissionFileDAO::getGenreCategoryMapping ( )

Return the mapping of genre categories to the lower case class name of file implementation.

Returns
array a list of lower case class names of file implementations.

Definition at line 558 of file PKPSubmissionFileDAO.inc.php.

Referenced by _getFileImplementationForGenreId().

& PKPSubmissionFileDAO::getLatestNewRevisionsByReviewRound (   $submissionId,
  $stageId,
  $round,
  $fileStage = null 
)

Get all files that are in the current review round, but have later revisions.

Parameters
$submissionIdint
$stageIdint
$roundint
$fileStageint (optional) A MONOGRAPH_FILE_* constant
Returns
array A list of MonographFiles.

Definition at line 189 of file PKPSubmissionFileDAO.inc.php.

References _getInternally().

& PKPSubmissionFileDAO::getLatestRevision (   $fileId,
  $fileStage = null,
  $submissionId = null 
)

Retrieve the latest revision of a file.

Parameters
$fileIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$submissionIdint (optional) for validation purposes only
Returns
SubmissionFile

Definition at line 82 of file PKPSubmissionFileDAO.inc.php.

References _checkAndReturnRevision(), and _getInternally().

Referenced by setAsLatestRevision().

PKPSubmissionFileDAO::getLatestRevisionNumber (   $fileId)

Retrieve the current revision number for a file.

Parameters
$fileIdint
Returns
int

Definition at line 202 of file PKPSubmissionFileDAO.inc.php.

References getSubmissionEntityName(), and DAO\retrieve().

& PKPSubmissionFileDAO::getLatestRevisions (   $submissionId,
  $fileStage = null,
  $rangeInfo = null 
)

Retrieve a list of current revisions.

Parameters
$submissionIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$rangeInfoDBResultRange (optional)
Returns
array a list of SubmissionFile instances

Definition at line 99 of file PKPSubmissionFileDAO.inc.php.

References _getInternally().

& PKPSubmissionFileDAO::getLatestRevisionsByAssocId (   $assocType,
  $assocId,
  $submissionId = null,
  $fileStage = null,
  $rangeInfo = null 
)

Retrieve the latest revision of all files associated to a certain object.

Parameters
$assocTypeint
$assocIdint
$fileStageint (optional) further restricts the selection to a given file stage.
$rangeInfoDBResultRange (optional)
Returns
array a list of SubmissionFile instances

Definition at line 135 of file PKPSubmissionFileDAO.inc.php.

References _getInternally().

& PKPSubmissionFileDAO::getRevision (   $fileId,
  $revision,
  $fileStage = null,
  $submissionId = null 
)

Retrieve a specific revision of a file.

Parameters
$fileIdint
$revisionint
$fileStageint (optional) further restricts the selection to a given file stage.
$submissionIdint (optional) for validation purposes only

Definition at line 63 of file PKPSubmissionFileDAO.inc.php.

References _checkAndReturnRevision(), and _getInternally().

Referenced by _castToDatabase(), and updateObject().

& PKPSubmissionFileDAO::getRevisionsByReviewRound (   $submissionId,
  $stageId,
  $round,
  $fileStage = null,
  $uploaderUserId = null,
  $uploaderUserGroupId = null 
)

Get all file revisions assigned to the given review round.

Parameters
$submissionIdinteger
$stageIdinteger
$fileStageIdinteger
$roundinteger
$uploaderUserIdinteger
$uploaderUserGroupIdinteger
$fileStageinteger (optional) One of the MONOGRAPH_FILE constants
Returns
array A list of MonographFiles.

Definition at line 171 of file PKPSubmissionFileDAO.inc.php.

References _getInternally().

PKPSubmissionFileDAO::getSubmissionEntityName ( )

Return the name of the base submission entity (i.e. 'monograph', 'paper', 'article', etc.)

Returns
string

Definition at line 533 of file PKPSubmissionFileDAO.inc.php.

Referenced by _buildFileSelectionFilter(), _getInternally(), assignRevisionToReviewRound(), deleteAllRevisionsByReviewRound(), deleteReviewRoundAssignment(), and getLatestRevisionNumber().

& PKPSubmissionFileDAO::insertObject ( $submissionFile,
  $sourceFile,
  $isUpload = false 
)

Insert a new SubmissionFile.

Parameters
$submissionFileSubmissionFile
$sourceFilestring The place where the physical file resides right now or the file name in the case of an upload. The file will be copied to its canonical target location.
$isUploadboolean set to true if the file has just been uploaded.
Returns
SubmissionFile

Definition at line 231 of file PKPSubmissionFileDAO.inc.php.

References _castToDatabase(), _castToGenre(), _getDaoDelegate(), and _getFileImplementationForGenreId().

& PKPSubmissionFileDAO::newDataObjectByGenreId (   $genreId)

Construct a new data object corresponding to this DAO.

Parameters
$genreIdinteger The genre is required to identify the right file implementation.
Returns
SubmissionFile

Definition at line 515 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegateForGenreId().

PKPSubmissionFileDAO::PKPSubmissionFileDAO ( )

Constructor

Definition at line 46 of file PKPSubmissionFileDAO.inc.php.

& PKPSubmissionFileDAO::setAsLatestRevision (   $revisedFileId,
  $newFileId,
  $submissionId,
  $fileStage 
)

Set the latest revision of a file as the latest revision of another file.

Parameters
$revisedFileIdinteger the revised file
$newFileIdinteger the file that will become the latest revision of the revised file.
$submissionIdinteger the submission id the two files must belong to.
$fileStageinteger the file stage the two files must belong to.
Returns
SubmissionFile the new revision or null if something went wrong.

Definition at line 346 of file PKPSubmissionFileDAO.inc.php.

References getLatestRevision(), and updateObject().

PKPSubmissionFileDAO::transferOwnership (   $oldUserId,
  $newUserId 
)

Transfer the ownership of the submission files of one user to another.

Parameters
$oldUserIdint
$newUserIdint

Definition at line 500 of file PKPSubmissionFileDAO.inc.php.

References _getDaoDelegateForObject(), and _getInternally().

& PKPSubmissionFileDAO::updateObject ( $updatedFile,
  $previousFileId = null,
  $previousRevision = null 
)

Update an existing submission file.

NB: We implement a delete + insert strategy to deal with various casting problems (e.g. file implementation/genre may change, file path may change, etc.).

Parameters
$updatedFileSubmissionFile
$previousFileIdinteger The file id before the file was changed. Must only be given if the file id changed so that the previous file can be identified.
$previousRevisioninteger The revision before the file was changed. Must only be given if the revision changed so that the previous file can be identified.
Returns
SubmissionFile The updated file. This file may be of a different file implementation than the file passed into the method if the genre of the file didn't fit its implementation.

Definition at line 270 of file PKPSubmissionFileDAO.inc.php.

References _castToDatabase(), _castToGenre(), _getDaoDelegate(), _getFileImplementationForGenreId(), and getRevision().

Referenced by setAsLatestRevision().


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