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

Public Member Functions

 deleteObject (&$submissionFile)
 
fromRow (&$row)
 
 getLocaleFieldNames ()
 
 getSubmissionEntityName ()
 
insertObject (&$submissionFile, $sourceFile, $isUpload=false)
 
 newDataObject ()
 
 SubmissionFileDAODelegate ()
 
 updateLocaleFields (&$submissionFile)
 
 updateObject (&$submissionFile, &$previousFile)
 
- 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 class to support DAO delegates that provide operations to retrieve and modify SubmissionFile objects.

See Also
SubmissionFile

Definition at line 20 of file SubmissionFileDAODelegate.inc.php.

Member Function Documentation

SubmissionFileDAODelegate::deleteObject ( $submissionFile)

Delete a submission file from the database.

Parameters
$submissionFileSubmissionFile
Returns
boolean

Definition at line 72 of file SubmissionFileDAODelegate.inc.php.

& SubmissionFileDAODelegate::fromRow ( $row)

Function to return a SubmissionFile object from a row.

Parameters
$rowarray
Returns
SubmissionFile

Definition at line 81 of file SubmissionFileDAODelegate.inc.php.

SubmissionFileDAODelegate::getLocaleFieldNames ( )

Get the list of fields for which data is localized.

Returns
array

Definition at line 101 of file SubmissionFileDAODelegate.inc.php.

SubmissionFileDAODelegate::getSubmissionEntityName ( )

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

Returns
string

Definition at line 37 of file SubmissionFileDAODelegate.inc.php.

Referenced by updateLocaleFields().

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

Insert a new submission file.

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 the inserted file

Definition at line 51 of file SubmissionFileDAODelegate.inc.php.

SubmissionFileDAODelegate::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
SubmissionFile

Definition at line 89 of file SubmissionFileDAODelegate.inc.php.

SubmissionFileDAODelegate::SubmissionFileDAODelegate ( )

Constructor

Definition at line 24 of file SubmissionFileDAODelegate.inc.php.

SubmissionFileDAODelegate::updateLocaleFields ( $submissionFile)

Update the localized fields for this submission file.

Parameters
$submissionFileSubmissionFile

Definition at line 109 of file SubmissionFileDAODelegate.inc.php.

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

SubmissionFileDAODelegate::updateObject ( $submissionFile,
$previousFile 
)

Update a submission file.

Parameters
$submissionFileSubmissionFile The target state of the updated file.
$previousFileSubmissionFile The current state of the updated file.
Returns
boolean

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


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