Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
TemporaryFileDAO Class Reference
Inheritance diagram for TemporaryFileDAO:
DAO

Public Member Functions

 _returnTemporaryFileFromRow ($row)
 
 deleteByUserId ($userId)
 
 deleteTemporaryFileById ($fileId, $userId)
 
 getInsertId ()
 
getTemporaryFile ($fileId, $userId)
 
 insertObject ($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 ()
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 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

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 
- Public Attributes inherited from DAO
 $_dataSource
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

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 63 of file TemporaryFileDAO.inc.php.

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

Referenced by getTemporaryFile().

TemporaryFileDAO::deleteByUserId (   $userId)

Delete temporary files by user ID.

Parameters
$userIdint

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

References DAO\update().

TemporaryFileDAO::deleteTemporaryFileById (   $fileId,
  $userId 
)

Delete a temporary file by ID.

Parameters
$fileIdint
$userIdint

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

References DAO\update().

TemporaryFileDAO::getInsertId ( )

Get the ID of the last inserted temporary file.

Returns
int

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

References DAO\_getInsertId().

Referenced by insertObject().

& 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::insertObject (   $temporaryFile)

Insert a new TemporaryFile.

Parameters
$temporaryFileTemporaryFile
Returns
int

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

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

TemporaryFileDAO::newDataObject ( )

Instantiate and return a new data object.

Returns
TemporaryFile

Definition at line 54 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 107 of file TemporaryFileDAO.inc.php.

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


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