Open Monograph Press
3.3.0
ControlledVocab.inc.php
1
<?php
20
class
ControlledVocab
extends
DataObject
{
21
22
//
23
// Get/set methods
24
//
25
30
function
getAssocId
() {
31
return
$this->
getData
(
'assocId'
);
32
}
33
38
function
setAssocId
($assocId) {
39
$this->
setData
(
'assocId'
, $assocId);
40
}
41
46
function
getAssocType
() {
47
return
$this->
getData
(
'assocType'
);
48
}
49
54
function
setAssocType
($assocType) {
55
$this->
setData
(
'assocType'
, $assocType);
56
}
57
62
function
getSymbolic
() {
63
return
$this->
getData
(
'symbolic'
);
64
}
65
70
function
setSymbolic
($symbolic) {
71
$this->
setData
(
'symbolic'
, $symbolic);
72
}
73
79
function
enumerate
($settingName =
'name'
) {
80
$controlledVocabDao =
DAORegistry::getDAO
(
'ControlledVocabDAO'
);
/* @var $controlledVocabDao ControlledVocabDAO */
81
return
$controlledVocabDao->enumerate($this->
getId
(), $settingName);
82
}
83
}
84
85
DataObject\getData
& getData($key, $locale=null)
Definition:
DataObject.inc.php:100
ControlledVocab\getAssocType
getAssocType()
Definition:
ControlledVocab.inc.php:46
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
ControlledVocab
Basic class describing an controlled vocab.
Definition:
ControlledVocab.inc.php:20
ControlledVocab\enumerate
enumerate($settingName='name')
Definition:
ControlledVocab.inc.php:79
ControlledVocab\setSymbolic
setSymbolic($symbolic)
Definition:
ControlledVocab.inc.php:70
ControlledVocab\getAssocId
getAssocId()
Definition:
ControlledVocab.inc.php:30
DataObject\getId
getId()
Definition:
DataObject.inc.php:206
ControlledVocab\setAssocType
setAssocType($assocType)
Definition:
ControlledVocab.inc.php:54
ControlledVocab\getSymbolic
getSymbolic()
Definition:
ControlledVocab.inc.php:62
ControlledVocab\setAssocId
setAssocId($assocId)
Definition:
ControlledVocab.inc.php:38
DataObject\setData
setData($key, $value, $locale=null)
Definition:
DataObject.inc.php:132
lib
pkp
classes
controlledVocab
ControlledVocab.inc.php
Generated on Fri Aug 28 2020 14:51:50 for Open Monograph Press by
1.8.17