4 * @file classes/monograph/form/MonographArtworkForm.inc.php
6 * Copyright (c) 2003-2008 John Willinsky
7 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9 * @class MonographArtworkForm
13 * @brief Form for uploading artwork.
16 // $Id: MonographArtworkForm.inc.php,v 1.4 2009/06/09 23:37:13 tylerl Exp $
20 import('inserts.artwork.ArtworkInsert');
22 class MonographArtworkForm
extends Form
{
30 function MonographArtworkForm($template, $monograph) {
31 parent
::Form($template);
32 $this->addCheck(new FormValidatorPost($this));
33 $this->monograph
=& $monograph;
34 $this->artworkInsert
= new ArtworkInsert($monograph->getMonographId());
38 * Get a list of fields for which localization should be used.
41 function getLocaleFieldNames() {
49 $templateMgr =& TemplateManager
::getManager();
50 $templateMgr->assign_by_ref('submission', $this->monograph
);
52 $this->artworkInsert
->display($this);
57 function processEvents() {
58 return $this->artworkInsert
->processEvents($this);
62 * Initialize form data.
69 * Assign form data to user-submitted data.
71 function readInputData() {
72 $this->readUserVars($this->artworkInsert
->listUserVars());
79 return $this->artworkInsert
->execute($this, $this->monograph
);