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

Public Member Functions

_returnIssueFileFromRow (&$row)
 
 deleteIssueFile (&$issueFile)
 
 deleteIssueFileById ($fileId)
 
 deleteIssueFiles ($issueId)
 
 getInlineableTypes ()
 
 getInsertIssueFileId ()
 
getIssueFile ($fileId, $issueId=null)
 
getIssueFilesByIssue ($issueId)
 
 insertIssueFile (&$issueFile)
 
 IssueFileDao ()
 
 setInlineableTypes ($inlineableTypes)
 
 updateIssueFile (&$issueFile)
 
- 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

Operations for retrieving and modifying IssueFile objects.

See Also
IssueFile

Definition at line 21 of file IssueFileDAO.inc.php.

Member Function Documentation

& IssueFileDAO::_returnIssueFileFromRow ( $row)

Internal function to return an IssueFile object from a row.

Parameters
$rowarray
Returns
IssueFile

Definition at line 118 of file IssueFileDAO.inc.php.

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

Referenced by getIssueFile(), and getIssueFilesByIssue().

IssueFileDAO::deleteIssueFile ( $issueFile)

Delete an issue file.

Parameters
$issueIssueFile

Definition at line 210 of file IssueFileDAO.inc.php.

References deleteIssueFileById().

IssueFileDAO::deleteIssueFileById (   $fileId)

Delete an issue file by ID.

Parameters
$issueIdint
$revisionint

Definition at line 219 of file IssueFileDAO.inc.php.

References DAO\update().

Referenced by deleteIssueFile().

IssueFileDAO::deleteIssueFiles (   $issueId)

Delete all issue files for an issue.

Parameters
$issueIdint

Definition at line 229 of file IssueFileDAO.inc.php.

References DAO\update().

IssueFileDAO::getInlineableTypes ( )

Get inlineable file types.

Returns
array

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

IssueFileDAO::getInsertIssueFileId ( )

Get the ID of the last inserted issue file.

Returns
int

Definition at line 239 of file IssueFileDAO.inc.php.

References DAO\getInsertId().

Referenced by insertIssueFile().

& IssueFileDAO::getIssueFile (   $fileId,
  $issueId = null 
)

Retrieve an issue file by ID.

Parameters
$fileIdint
$issueIdint optional
Returns
IssueFile

Definition at line 55 of file IssueFileDAO.inc.php.

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

& IssueFileDAO::getIssueFilesByIssue (   $issueId)

Retrieve all issue files for an issue.

Parameters
$issueIdint
Returns
array IssueFiles

Definition at line 94 of file IssueFileDAO.inc.php.

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

IssueFileDAO::insertIssueFile ( $issueFile)

Insert a new IssueFile.

Parameters
$issueFileIssueFile
Returns
int

Definition at line 138 of file IssueFileDAO.inc.php.

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

IssueFileDAO::IssueFileDao ( )

Constructor.

Definition at line 29 of file IssueFileDAO.inc.php.

IssueFileDAO::setInlineableTypes (   $inlineableTypes)

Set inlineable file types.

Parameters
$inlineableTypesarray

Definition at line 45 of file IssueFileDAO.inc.php.

IssueFileDAO::updateIssueFile ( $issueFile)

Update an existing issue file.

Parameters
$issueIssueFile

Definition at line 175 of file IssueFileDAO.inc.php.

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


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