PHP Class ArticleGalley, ojs

Inheritance: extends ArticleFile
Afficher le fichier Open project: pkp/ojs Class Usage Examples

Méthodes publiques

Свойство Type Description
$_submissionFile SubmissionFile

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
getBestGalleyId ( ) : string Return the "best" article ID -- If a public article ID is set, use it; otherwise use the internal article Id.
getFile ( ) : SubmissionFile Get the submission file corresponding to this galley.
getFileId ( ) : integer Get file id
getFileType ( ) : string Get the file type corresponding to this galley.
getGalleyLabel ( ) : string Get the localized galley label.
getLabel ( ) : string Get label/title.
getLocale ( ) : string Get locale.
getLocalizedName ( ) : string Override the parent class to fetch the non-localized label.
getName ( $locale ) : array
getViews ( ) : integer Get views count.
isPdfGalley ( ) : boolean Determine whether the galley is a PDF.
setFileId ( $fileId ) Set file ID.
setLabel ( $label ) Set label/title.
setLocale ( $locale ) Set locale.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

getBestGalleyId() public méthode

Return the "best" article ID -- If a public article ID is set, use it; otherwise use the internal article Id.
public getBestGalleyId ( ) : string
Résultat string

getFile() public méthode

Get the submission file corresponding to this galley.
public getFile ( ) : SubmissionFile
Résultat SubmissionFile

getFileId() public méthode

Get file id
public getFileId ( ) : integer
Résultat integer

getFileType() public méthode

Get the file type corresponding to this galley.
public getFileType ( ) : string
Résultat string MIME type

getGalleyLabel() public méthode

Get the localized galley label.
public getGalleyLabel ( ) : string
Résultat string

getLabel() public méthode

Get label/title.
public getLabel ( ) : string
Résultat string

getLocale() public méthode

Get locale.
public getLocale ( ) : string
Résultat string

getLocalizedName() public méthode

Override the parent class to fetch the non-localized label.
See also: Representation::getLocalizedName()
public getLocalizedName ( ) : string
Résultat string

getName() public méthode

See also: Representation::getName() This override exists to provide a functional getName() in order to make native XML export work correctly. It is only used in that single instance.
public getName ( $locale ) : array
$locale string unused, except to match the function prototype in Representation.
Résultat array

getViews() public méthode

Get views count.
public getViews ( ) : integer
Résultat integer

isPdfGalley() public méthode

Determine whether the galley is a PDF.
public isPdfGalley ( ) : boolean
Résultat boolean

setFileId() public méthode

Set file ID.
public setFileId ( $fileId )
$fileId int

setLabel() public méthode

Set label/title.
public setLabel ( $label )
$label string

setLocale() public méthode

Set locale.
public setLocale ( $locale )
$locale string

Property Details

$_submissionFile public_oe property

public SubmissionFile $_submissionFile
Résultat SubmissionFile