コード例 #1
0
    /**
     * @see SubmissionFileDAODelegate::deleteObject()
     */
    function deleteObject(&$submissionFile)
    {
        // First delete the monograph file entry.
        if (!parent::deleteObject($submissionFile)) {
            return false;
        }
        // Delete the artwork file entry.
        return $this->update('DELETE FROM monograph_artwork_files
			 WHERE file_id = ? AND revision = ?', array((int) $submissionFile->getFileId(), (int) $submissionFile->getRevision()));
    }