Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
SubmissionFileDAODelegate.inc.php
1 <?php
2 
18 import('lib.pkp.classes.db.DAO');
19 
25  parent::DAO();
26  }
27 
28 
29  //
30  // Abstract public methods to be implemented by subclasses.
31  //
38  assert(false);
39  }
40 
51  function &insertObject(&$submissionFile, $sourceFile, $isUpload = false) {
52  assert(false);
53  }
54 
63  function updateObject(&$submissionFile, &$previousFile) {
64  assert(false);
65  }
66 
72  function deleteObject(&$submissionFile) {
73  assert(false);
74  }
75 
81  function &fromRow(&$row) {
82  assert(false);
83  }
84 
89  function newDataObject() {
90  assert(false);
91  }
92 
93 
94  //
95  // Protected helper methods
96  //
101  function getLocaleFieldNames() {
102  return array();
103  }
104 
109  function updateLocaleFields(&$submissionFile) {
110  // Update the locale fields.
111  $this->updateDataObjectSettings($this->getSubmissionEntityName().'_file_settings', $submissionFile, array(
112  'file_id' => $submissionFile->getFileId()
113  ));
114  }
115 }
116 
117 ?>
Operations for retrieving and modifying objects from a database.
Definition: DAO.inc.php:29
Abstract class to support DAO delegates that provide operations to retrieve and modify SubmissionFile...
& insertObject(&$submissionFile, $sourceFile, $isUpload=false)
updateDataObjectSettings($tableName, &$dataObject, $idArray)
Definition: DAO.inc.php:460
updateObject(&$submissionFile, &$previousFile)