4 * @file classes/author/Author.inc.php
6 * Copyright (c) 2003-2008 John Willinsky
7 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
13 * @brief Monograph author metadata class.
16 // $Id: Author.inc.php,v 1.3 2009/08/13 00:38:49 tylerl Exp $
18 import('submission.PKPAuthor');
20 define('PRIMARY_CONTACT', 1);
22 define('CONTRIBUTION_TYPE_AUTHOR', 0);
23 define('CONTRIBUTION_TYPE_VOLUME_EDITOR', 1);
25 class Author
extends PKPAuthor
{
39 * Get the author's contribution type.
42 function getContributionType() {
43 return $this->getData('contribution_type');
47 * Set the author's contribution type
50 function setContributionType($type) {
51 $this->setData('contribution_type', $type);
55 * Get ID of monograph.
58 function getMonographId() {
59 return $this->getData('monographId');
63 * Set ID of monograph.
64 * @param $monographId int
66 function setMonographId($monographId) {
67 return $this->setData('monographId', $monographId);