00001 <?php
00002
00016
00017
00018
00019 class Author extends DataObject {
00020
00024 function Author() {
00025 parent::DataObject();
00026 $this->setAuthorId(0);
00027 }
00028
00034 function getFullName() {
00035 return $this->getData('firstName') . ' ' . ($this->getData('middleName') != '' ? $this->getData('middleName') . ' ' : '') . $this->getData('lastName');
00036 }
00037
00038
00039
00040
00041
00046 function getAuthorId() {
00047 return $this->getData('authorId');
00048 }
00049
00054 function setAuthorId($authorId) {
00055 return $this->setData('authorId', $authorId);
00056 }
00057
00062 function getArticleId() {
00063 return $this->getData('articleId');
00064 }
00065
00070 function setArticleId($articleId) {
00071 return $this->setData('articleId', $articleId);
00072 }
00073
00078 function getFirstName() {
00079 return $this->getData('firstName');
00080 }
00081
00086 function setFirstName($firstName)
00087 {
00088 return $this->setData('firstName', $firstName);
00089 }
00090
00095 function getMiddleName() {
00096 return $this->getData('middleName');
00097 }
00098
00103 function setMiddleName($middleName) {
00104 return $this->setData('middleName', $middleName);
00105 }
00106
00111 function getLastName() {
00112 return $this->getData('lastName');
00113 }
00114
00119 function setLastName($lastName) {
00120 return $this->setData('lastName', $lastName);
00121 }
00122
00127 function getAffiliation() {
00128 return $this->getData('affiliation');
00129 }
00130
00135 function setAffiliation($affiliation) {
00136 return $this->setData('affiliation', $affiliation);
00137 }
00138
00143 function getCountry() {
00144 return $this->getData('country');
00145 }
00146
00151 function getCountryLocalized() {
00152 $countryDao =& DAORegistry::getDAO('CountryDAO');
00153 $country = $this->getCountry();
00154 if ($country) {
00155 return $countryDao->getCountry($country);
00156 }
00157 return null;
00158 }
00159
00164 function setCountry($country) {
00165 return $this->setData('country', $country);
00166 }
00167
00172 function getEmail() {
00173 return $this->getData('email');
00174 }
00175
00180 function setEmail($email) {
00181 return $this->setData('email', $email);
00182 }
00183
00188 function getUrl() {
00189 return $this->getData('url');
00190 }
00191
00196 function setUrl($url) {
00197 return $this->setData('url', $url);
00198 }
00199
00203 function getAuthorCompetingInterests() {
00204 return $this->getLocalizedData('competingInterests');
00205 }
00206
00212 function getCompetingInterests($locale) {
00213 return $this->getData('competingInterests', $locale);
00214 }
00215
00221 function setCompetingInterests($competingInterests, $locale) {
00222 return $this->setData('competingInterests', $competingInterests, $locale);
00223 }
00224
00228 function getAuthorBiography() {
00229 return $this->getLocalizedData('biography');
00230 }
00231
00237 function getBiography($locale) {
00238 return $this->getData('biography', $locale);
00239 }
00240
00246 function setBiography($biography, $locale) {
00247 return $this->setData('biography', $biography, $locale);
00248 }
00249
00254 function getPrimaryContact() {
00255 return $this->getData('primaryContact');
00256 }
00257
00262 function setPrimaryContact($primaryContact) {
00263 return $this->setData('primaryContact', $primaryContact);
00264 }
00265
00270 function getSequence() {
00271 return $this->getData('sequence');
00272 }
00273
00278 function setSequence($sequence) {
00279 return $this->setData('sequence', $sequence);
00280 }
00281
00282 }
00283
00284 ?>