Public Member Functions | |
| _fileStageToPath ($fileStage) | |
| _generateFileName () | |
| copyEditableMetadataFrom ($monographFile) | |
| getAssocId () | |
| getAssocType () | |
| getDirectSalesPrice () | |
| getDocumentType () | |
| getExtension () | |
| getFileLabel ($locale=null) | |
| getFileName () | |
| getFilePath () | |
| getGenreId () | |
| getLocalizedName () | |
| getMonographId () | |
| getName ($locale) | |
| getUploaderUserId () | |
| getUserGroupId () | |
| MonographFile () | |
| setAssocId ($assocId) | |
| setAssocType ($assocType) | |
| setDirectSalesPrice ($directSalesPrice) | |
| setFileName ($fileName) | |
| setGenreId ($genreId) | |
| setMonographId ($monographId) | |
| setName ($name, $locale) | |
| setUploaderUserId ($uploaderUserId) | |
| setUserGroupId ($userGroupId) | |
Monograph file class.
Definition at line 38 of file MonographFile.inc.php.
| MonographFile._fileStageToPath | ( | $ | fileStage | ) |
Return path associated with a file stage code.
| $fileStage | string |
Definition at line 296 of file MonographFile.inc.php.
Referenced by getFilePath().
| MonographFile._generateFileName | ( | ) |
Generate the unique filename for this monograph file.
Definition at line 323 of file MonographFile.inc.php.
References getExtension(), getGenreId(), and getMonographId().
Referenced by getFileName().
| MonographFile.copyEditableMetadataFrom | ( | $ | monographFile | ) |
Copy the user-facing (editable) metadata from another monograph file.
| $monographFile | MonographFile |
Reimplemented in ArtworkFile.
Definition at line 237 of file MonographFile.inc.php.
References setName().
| MonographFile.getAssocId | ( | ) |
Get id that is associated with this file.
Definition at line 103 of file MonographFile.inc.php.
| MonographFile.getAssocType | ( | ) |
Get type that is associated with this file.
Definition at line 87 of file MonographFile.inc.php.
| MonographFile.getDirectSalesPrice | ( | ) |
| MonographFile.getDocumentType | ( | ) |
Get the file's document type (enumerated types)
Definition at line 187 of file MonographFile.inc.php.
| MonographFile.getExtension | ( | ) |
Get the file's extension.
Definition at line 177 of file MonographFile.inc.php.
Referenced by _generateFileName().
| MonographFile.getFileLabel | ( | $ | locale = null |
) |
Build a file name label.
Definition at line 215 of file MonographFile.inc.php.
References getLocalizedName(), and getName().
| MonographFile.getFileName | ( | ) |
Definition at line 250 of file MonographFile.inc.php.
References _generateFileName().
Referenced by getFilePath().
| MonographFile.getFilePath | ( | ) |
Definition at line 273 of file MonographFile.inc.php.
References _fileStageToPath(), getFileName(), and getMonographId().
Referenced by ArtworkFile.getHeight(), and ArtworkFile.getWidth().
| MonographFile.getGenreId | ( | ) |
Get the genre id of this file (i.e. referring to Manuscript, Index, etc) Foreign key into genres table
Definition at line 207 of file MonographFile.inc.php.
Referenced by _generateFileName().
| MonographFile.getLocalizedName | ( | ) |
Get the localized name of the file
Definition at line 169 of file MonographFile.inc.php.
Referenced by getFileLabel().
| MonographFile.getMonographId | ( | ) |
Get ID of monograph.
Definition at line 119 of file MonographFile.inc.php.
Referenced by _generateFileName(), and getFilePath().
| MonographFile.getName | ( | $ | locale | ) |
Get the name of the file
| $locale | string |
Definition at line 161 of file MonographFile.inc.php.
Referenced by getFileLabel().
| MonographFile.getUploaderUserId | ( | ) |
| MonographFile.getUserGroupId | ( | ) |
| MonographFile.MonographFile | ( | ) |
Constructor.
Definition at line 43 of file MonographFile.inc.php.
Referenced by ArtworkFile.ArtworkFile().
| MonographFile.setAssocId | ( | $ | assocId | ) |
Set id that is associated with this file.
| $assocId | int |
Definition at line 111 of file MonographFile.inc.php.
| MonographFile.setAssocType | ( | $ | assocType | ) |
Set type that is associated with this file.
| $assocType | int |
Definition at line 95 of file MonographFile.inc.php.
| MonographFile.setDirectSalesPrice | ( | $ | directSalesPrice | ) |
Set direct sales price.
| $directSalesPrice | numeric |
Definition at line 143 of file MonographFile.inc.php.
| MonographFile.setFileName | ( | $ | fileName | ) |
Definition at line 261 of file MonographFile.inc.php.
| MonographFile.setGenreId | ( | $ | genreId | ) |
Set the genre id of this file (i.e. referring to Manuscript, Index, etc) Foreign key into genres table
| $genreId | int |
Definition at line 198 of file MonographFile.inc.php.
| MonographFile.setMonographId | ( | $ | monographId | ) |
Set ID of monograph.
| $monographId | int |
Definition at line 127 of file MonographFile.inc.php.
| MonographFile.setName | ( | $ | name, | |
| $ | locale | |||
| ) |
Set the name of the file
| $name | string | |
| $locale | string |
Definition at line 152 of file MonographFile.inc.php.
Referenced by copyEditableMetadataFrom().
| MonographFile.setUploaderUserId | ( | $ | uploaderUserId | ) |
Set the uploader's user id.
| $uploaderUserId | integer |
Definition at line 55 of file MonographFile.inc.php.
| MonographFile.setUserGroupId | ( | $ | userGroupId | ) |
Set the uploader's user group id
| $userGroupId | int |
Definition at line 71 of file MonographFile.inc.php.
1.7.1