Open Monograph Press
3.3.0
IdentificationCode.inc.php
1
<?php
2
17
class
IdentificationCode
extends
DataObject
{
21
function
__construct
() {
22
parent::__construct();
23
}
24
29
function
getPublicationFormatId
() {
30
return
$this->
getData
(
'publicationFormatId'
);
31
}
32
37
function
setPublicationFormatId
($publicationFormatId) {
38
return
$this->
setData
(
'publicationFormatId'
, $publicationFormatId);
39
}
40
45
function
setCode
($code) {
46
$this->
setData
(
'code'
, $code);
47
}
48
53
function
getCode
() {
54
return
$this->
getData
(
'code'
);
55
}
56
61
function
getNameForONIXCode
() {
62
$onixCodelistItemDao =
DAORegistry::getDAO
(
'ONIXCodelistItemDAO'
);
/* @var $onixCodelistItemDao ONIXCodelistItemDAO */
63
$codes =& $onixCodelistItemDao->getCodes(
'List5'
);
// List5 is for ISBN, GTIN-13, etc.
64
return
$codes[$this->
getCode
()];
65
}
66
71
function
setValue
($value) {
72
$this->
setData
(
'value'
, $value);
73
}
74
79
function
getValue
() {
80
return
$this->
getData
(
'value'
);
81
}
82
}
83
84
IdentificationCode\setPublicationFormatId
setPublicationFormatId($publicationFormatId)
Definition:
IdentificationCode.inc.php:37
DataObject\getData
& getData($key, $locale=null)
Definition:
DataObject.inc.php:100
IdentificationCode\getCode
getCode()
Definition:
IdentificationCode.inc.php:53
DataObject
Any class with an associated DAO should extend this class.
Definition:
DataObject.inc.php:18
DAORegistry\getDAO
static & getDAO($name, $dbconn=null)
Definition:
DAORegistry.inc.php:57
IdentificationCode\setCode
setCode($code)
Definition:
IdentificationCode.inc.php:45
IdentificationCode\setValue
setValue($value)
Definition:
IdentificationCode.inc.php:71
IdentificationCode\getNameForONIXCode
getNameForONIXCode()
Definition:
IdentificationCode.inc.php:61
IdentificationCode\getPublicationFormatId
getPublicationFormatId()
Definition:
IdentificationCode.inc.php:29
IdentificationCode\__construct
__construct()
Definition:
IdentificationCode.inc.php:21
IdentificationCode\getValue
getValue()
Definition:
IdentificationCode.inc.php:79
IdentificationCode
Basic class describing an identification code (used on the ONIX templates for publication formats)
Definition:
IdentificationCode.inc.php:17
DataObject\setData
setData($key, $value, $locale=null)
Definition:
DataObject.inc.php:132
classes
publicationFormat
IdentificationCode.inc.php
Generated on Fri Aug 28 2020 14:52:38 for Open Monograph Press by
1.8.17