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
{
24 * Get the ID of the controlled vocab.
27 function getControlledVocabId() {
28 return $this->getData('controlledVocabId');
32 * Set the ID of the controlled vocab.
33 * @param $controlledVocabId int
35 function setControlledVocabId($controlledVocabId) {
36 return $this->setData('controlledVocabId', $controlledVocabId);
40 * Get sequence number.
43 function getSequence() {
44 return $this->getData('sequence');
48 * Set sequence number.
49 * @param $sequence float
51 function setSequence($sequence) {
52 return $this->setData('sequence', $sequence);
56 * Get the localized name.
59 function getLocalizedName() {
60 return $this->getLocalizedData('name');
64 * Get the name of the controlled vocabulary entry.
65 * @param $locale string
68 function getName($locale) {
69 return $this->getData('name', $locale);
73 * Set the name of the controlled vocabulary entry.
75 * @param $locale string
77 function setName($name, $locale) {
78 return $this->setData('name', $name, $locale);