baseline
[omp.pkp.sfu.ca.git] / lib / pkp / classes / controlledVocab / ControlledVocabEntry.inc.php
blob6b1a08a198e9745bf3db87c23d4f22a6493862ae
1 <?php
3 /**
4 * @file ControlledVocabEntry.inc.php
6 * Copyright (c) 2000-2009 John Willinsky
7 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9 * @class ControlledVocabEntry
10 * @ingroup controlled_vocabs
11 * @see ControlledVocabEntryDAO
13 * @brief Basic class describing a controlled vocab.
16 //$Id: ControlledVocabEntry.inc.php,v 1.2 2009/04/08 21:34:53 asmecher Exp $
18 class ControlledVocabEntry extends DataObject {
20 // Get/set methods
23 /**
24 * Get the ID of the controlled vocab.
25 * @return int
27 function getControlledVocabId() {
28 return $this->getData('controlledVocabId');
31 /**
32 * Set the ID of the controlled vocab.
33 * @param $controlledVocabId int
35 function setControlledVocabId($controlledVocabId) {
36 return $this->setData('controlledVocabId', $controlledVocabId);
39 /**
40 * Get sequence number.
41 * @return float
43 function getSequence() {
44 return $this->getData('sequence');
47 /**
48 * Set sequence number.
49 * @param $sequence float
51 function setSequence($sequence) {
52 return $this->setData('sequence', $sequence);
55 /**
56 * Get the localized name.
57 * @return string
59 function getLocalizedName() {
60 return $this->getLocalizedData('name');
63 /**
64 * Get the name of the controlled vocabulary entry.
65 * @param $locale string
66 * @return string
68 function getName($locale) {
69 return $this->getData('name', $locale);
72 /**
73 * Set the name of the controlled vocabulary entry.
74 * @param $name string
75 * @param $locale string
77 function setName($name, $locale) {
78 return $this->setData('name', $name, $locale);