PHP Class IssueFileDAO, ojs

Inheritance: extends PKPFileDAO
Afficher le fichier Open project: pkp/ojs

Méthodes publiques

Свойство Type Description
$_inlineableTypes * @var array MIME types that can be displayed inline in a browser

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
_fromRow ( $row ) : IssueFile Internal function to return an IssueFile object from a row.
deleteById ( $fileId ) Delete an issue file by ID.
deleteByIssueId ( $issueId ) Delete all issue files for an issue.
deleteObject ( $issueFile ) Delete an issue file.
getById ( $fileId, $issueId = null ) : IssueFile Retrieve an issue file by ID.
getInlineableTypes ( ) : array Get inlineable file types.
getInsertId ( ) : integer Get the ID of the last inserted issue file.
insertObject ( $issueFile ) : integer Insert a new IssueFile.
newDataObject ( ) : IssueFile Construct a new IssueFile data object.
setInlineableTypes ( $inlineableTypes ) Set inlineable file types.
updateObject ( $issueFile ) Update an existing issue file.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

_fromRow() public méthode

Internal function to return an IssueFile object from a row.
public _fromRow ( $row ) : IssueFile
$row array
Résultat IssueFile

deleteById() public méthode

Delete an issue file by ID.
public deleteById ( $fileId )

deleteByIssueId() public méthode

Delete all issue files for an issue.
public deleteByIssueId ( $issueId )
$issueId int

deleteObject() public méthode

Delete an issue file.
public deleteObject ( $issueFile )

getById() public méthode

Retrieve an issue file by ID.
public getById ( $fileId, $issueId = null ) : IssueFile
$fileId int
$issueId int optional
Résultat IssueFile

getInlineableTypes() public méthode

Get inlineable file types.
public getInlineableTypes ( ) : array
Résultat array

getInsertId() public méthode

Get the ID of the last inserted issue file.
public getInsertId ( ) : integer
Résultat integer

insertObject() public méthode

Insert a new IssueFile.
public insertObject ( $issueFile ) : integer
$issueFile IssueFile
Résultat integer

newDataObject() public méthode

Construct a new IssueFile data object.
public newDataObject ( ) : IssueFile
Résultat IssueFile

setInlineableTypes() public méthode

Set inlineable file types.
public setInlineableTypes ( $inlineableTypes )
$inlineableTypes array

updateObject() public méthode

Update an existing issue file.
public updateObject ( $issueFile )

Property Details

$_inlineableTypes public_oe property

* @var array MIME types that can be displayed inline in a browser
public $_inlineableTypes