baseline
[omp.pkp.sfu.ca.git] / classes / monograph / Author.inc.php
blob1e0b6be241e33d93942e345215f13b09cb00c2ab
1 <?php
3 /**
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.
9 * @class Author
10 * @ingroup monograph
11 * @see AuthorDAO
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 {
27 /**
28 * Constructor.
30 function Author() {
31 parent::PKPAuthor();
35 // Get/set methods
38 /**
39 * Get the author's contribution type.
40 * @return int
42 function getContributionType() {
43 return $this->getData('contribution_type');
46 /**
47 * Set the author's contribution type
48 * @param $type int
50 function setContributionType($type) {
51 $this->setData('contribution_type', $type);
54 /**
55 * Get ID of monograph.
56 * @return int
58 function getMonographId() {
59 return $this->getData('monographId');
62 /**
63 * Set ID of monograph.
64 * @param $monographId int
66 function setMonographId($monographId) {
67 return $this->setData('monographId', $monographId);