Operations for retrieving and modifying LibraryFile objects. More...
Public Member Functions | |
| & | _fromRow (&$row) |
| deleteById ($fileId, $revision=null) | |
| filenameExists ($pressId, $fileName) | |
| & | getById ($fileId) |
| & | getByMonographId ($monographId, $type=null, $pressId=null) |
| & | getByPressId ($pressId, $type=null) |
| getInsertLibraryFileId () | |
| getLocaleFieldNames () | |
| insertObject (&$libraryFile) | |
| LibraryFileDAO () | |
| newDataObject () | |
| updateLocaleFields (&$libraryFile) | |
| updateObject (&$libraryFile) | |
Operations for retrieving and modifying LibraryFile objects.
Definition at line 18 of file LibraryFileDAO.inc.php.
| & LibraryFileDAO._fromRow | ( | &$ | row | ) |
Internal function to return a LibraryFile object from a row.
| $row | array |
Definition at line 126 of file LibraryFileDAO.inc.php.
References newDataObject().
Referenced by getById().
| LibraryFileDAO.deleteById | ( | $ | fileId, | |
| $ | revision = null | |||
| ) |
Delete a library file by ID.
| $libraryId | int | |
| $revision | int |
Definition at line 220 of file LibraryFileDAO.inc.php.
| LibraryFileDAO.filenameExists | ( | $ | pressId, | |
| $ | fileName | |||
| ) |
Check if a file with this filename already exists
| $filename | String the filename to be checked |
Definition at line 236 of file LibraryFileDAO.inc.php.
| & LibraryFileDAO.getById | ( | $ | fileId | ) |
Retrieve a library file by ID.
| $fileId | int | |
| $revision | int optional, if omitted latest revision is used | |
| $libraryId | int optional |
Definition at line 33 of file LibraryFileDAO.inc.php.
References _fromRow().
| & LibraryFileDAO.getByMonographId | ( | $ | monographId, | |
| $ | type = null, |
|||
| $ | pressId = null | |||
| ) |
Retrieve all library files for a monograph.
| $monographId | int | |
| $type | (optional) | |
| $pressId | (optional) int |
Definition at line 77 of file LibraryFileDAO.inc.php.
| & LibraryFileDAO.getByPressId | ( | $ | pressId, | |
| $ | type = null | |||
| ) |
Retrieve all library files for a press.
| $pressId | int | |
| $type | (optional) |
Definition at line 56 of file LibraryFileDAO.inc.php.
| LibraryFileDAO.getInsertLibraryFileId | ( | ) |
Get the ID of the last inserted library file.
Definition at line 253 of file LibraryFileDAO.inc.php.
| LibraryFileDAO.getLocaleFieldNames | ( | ) |
Get the list of fields for which data is localized.
Definition at line 105 of file LibraryFileDAO.inc.php.
| LibraryFileDAO.insertObject | ( | &$ | libraryFile | ) |
Insert a new LibraryFile.
| $libraryFile | LibraryFile |
Definition at line 151 of file LibraryFileDAO.inc.php.
References updateLocaleFields().
| LibraryFileDAO.LibraryFileDAO | ( | ) |
Constructor
Definition at line 22 of file LibraryFileDAO.inc.php.
| LibraryFileDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 96 of file LibraryFileDAO.inc.php.
Referenced by _fromRow().
| LibraryFileDAO.updateLocaleFields | ( | &$ | libraryFile | ) |
Update the localized fields for this file.
| $libraryFile |
Definition at line 113 of file LibraryFileDAO.inc.php.
Referenced by insertObject(), and updateObject().
| LibraryFileDAO.updateObject | ( | &$ | libraryFile | ) |
Update a LibraryFile
| $monograph | MonographFile |
Definition at line 186 of file LibraryFileDAO.inc.php.
References updateLocaleFields().
1.7.1