Open Journal Systems  3.3.0
ControlledVocab Class Reference
Inheritance diagram for ControlledVocab:
DataObject

Public Member Functions

 enumerate ($settingName='name')
 
 getAssocId ()
 
 getAssocType ()
 
 getSymbolic ()
 
 setAssocId ($assocId)
 
 setAssocType ($assocType)
 
 setSymbolic ($symbolic)
 
- Public Member Functions inherited from DataObject
 __construct ()
 
 addSupportedMetadataAdapter ($metadataAdapter)
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
 getDAO ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
 getLocalizedData ($key, $preferredLocale=null)
 
 getMetadataFieldNames ($translated=true)
 
 getSetMetadataFieldNames ($translated=true)
 
 getSupportedExtractionAdapters ()
 
 getSupportedInjectionAdapters ()
 
 getSupportedMetadataSchemas ()
 
 hasData ($key, $locale=null)
 
 injectMetadata ($metadataDescription)
 
 removeSupportedMetadataAdapter ($metadataSchemaName)
 
 setAllData (&$data)
 
 setData ($key, $value, $locale=null)
 
 setHasLoadableAdapters ($hasLoadableAdapters)
 
 setId ($id)
 
 unsetData ($key, $locale=null)
 
 upcastTo ($targetObject)
 

Additional Inherited Members

- Data Fields inherited from DataObject
 $_data = array()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = array()
 

Detailed Description

Basic class describing an controlled vocab.

See also
ControlledVocabDAO

Definition at line 20 of file ControlledVocab.inc.php.

Member Function Documentation

◆ enumerate()

ControlledVocab::enumerate (   $settingName = 'name')

Get a list of controlled vocabulary options.

Parameters
$settingNamestring optional
Returns
array $controlledVocabEntryId => name

Definition at line 79 of file ControlledVocab.inc.php.

References DAORegistry\getDAO(), and DataObject\getId().

◆ getAssocId()

ControlledVocab::getAssocId ( )

get assoc id

Returns
int

Definition at line 30 of file ControlledVocab.inc.php.

References DataObject\getData().

◆ getAssocType()

ControlledVocab::getAssocType ( )

Get associated type.

Returns
int

Definition at line 46 of file ControlledVocab.inc.php.

References DataObject\getData().

◆ getSymbolic()

ControlledVocab::getSymbolic ( )

Get symbolic name.

Returns
string

Definition at line 62 of file ControlledVocab.inc.php.

References DataObject\getData().

◆ setAssocId()

ControlledVocab::setAssocId (   $assocId)

set assoc id

Parameters
$assocIdint

Definition at line 38 of file ControlledVocab.inc.php.

References DataObject\setData().

◆ setAssocType()

ControlledVocab::setAssocType (   $assocType)

Set associated type.

Parameters
$assocTypeint

Definition at line 54 of file ControlledVocab.inc.php.

References DataObject\setData().

◆ setSymbolic()

ControlledVocab::setSymbolic (   $symbolic)

Set symbolic name.

Parameters
$symbolicstring

Definition at line 70 of file ControlledVocab.inc.php.

References DataObject\setData().


The documentation for this class was generated from the following file: