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

Public Member Functions

_returnTemporaryFileFromRow (&$row)
 
 deleteTemporaryFileById ($fileId, $userId)
 
 deleteTemporaryFilesByUserId ($userId)
 
 getInsertTemporaryFileId ()
 
getTemporaryFile ($fileId, $userId)
 
 insertTemporaryFile (&$temporaryFile)
 
 newDataObject ()
 
 TemporaryFileDAO ()
 
 updateObject (&$temporaryFile)
 
- 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

Operations for retrieving and modifying TemporaryFile objects.

See Also
TemporaryFile

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

Member Function Documentation

& TemporaryFileDAO::_returnTemporaryFileFromRow ( $row)

Internal function to return a TemporaryFile object from a row.

Parameters
$rowarray
Returns
TemporaryFile

Definition at line 65 of file TemporaryFileDAO.inc.php.

References HookRegistry\call(), DAO\datetimeFromDB(), and newDataObject().

Referenced by getTemporaryFile().

TemporaryFileDAO::deleteTemporaryFileById (   $fileId,
  $userId 
)

Delete a temporary file by ID.

Parameters
$fileIdint
$userIdint

Definition at line 144 of file TemporaryFileDAO.inc.php.

References DAO\update().

TemporaryFileDAO::deleteTemporaryFilesByUserId (   $userId)

Delete temporary files by user ID.

Parameters
$userIdint

Definition at line 155 of file TemporaryFileDAO.inc.php.

References DAO\update().

TemporaryFileDAO::getInsertTemporaryFileId ( )

Get the ID of the last inserted temporary file.

Returns
int

Definition at line 187 of file TemporaryFileDAO.inc.php.

References DAO\getInsertId().

Referenced by insertTemporaryFile().

& TemporaryFileDAO::getTemporaryFile (   $fileId,
  $userId 
)

Retrieve a temporary file by ID.

Parameters
$fileIdint
$userIdint
Returns
TemporaryFile

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

References _returnTemporaryFileFromRow(), and DAO\retrieveLimit().

TemporaryFileDAO::insertTemporaryFile ( $temporaryFile)

Insert a new TemporaryFile.

Parameters
$temporaryFileTemporaryFile
Returns
int

Definition at line 85 of file TemporaryFileDAO.inc.php.

References DAO\datetimeToDB(), getInsertTemporaryFileId(), and DAO\update().

TemporaryFileDAO::newDataObject ( )

Instantiate and return a new data object.

Returns
TemporaryFile

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

Referenced by _returnTemporaryFileFromRow().

TemporaryFileDAO::TemporaryFileDAO ( )

Constructor

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

TemporaryFileDAO::updateObject ( $temporaryFile)

Update an existing temporary file.

Parameters
$temporaryTemporaryFile

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

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


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