/
Author.inc.php
77 lines (63 loc) · 1.35 KB
/
Author.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* @file classes/article/Author.inc.php
*
* Copyright (c) 2003-2010 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class Author
* @ingroup article
* @see AuthorDAO
*
* @brief Article author metadata class.
*/
// $Id$
import('lib.pkp.classes.submission.PKPAuthor');
class Author extends PKPAuthor {
/**
* Constructor.
*/
function Author() {
parent::PKPAuthor();
}
//
// Get/set methods
//
/**
* Get ID of article.
* @return int
*/
function getArticleId() {
return $this->getData('articleId');
}
/**
* Set ID of article.
* @param $articleId int
*/
function setArticleId($articleId) {
return $this->setData('articleId', $articleId);
}
/**
* Get the localized competing interests statement for this author
*/
function getAuthorCompetingInterests() {
return $this->getLocalizedData('competingInterests');
}
/**
* Get author competing interests.
* @param $locale string
* @return string
*/
function getCompetingInterests($locale) {
return $this->getData('competingInterests', $locale);
}
/**
* Set author competing interests.
* @param $competingInterests string
* @param $locale string
*/
function setCompetingInterests($competingInterests, $locale) {
return $this->setData('competingInterests', $competingInterests, $locale);
}
}
?>