Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Currency Class Reference
Inheritance diagram for Currency:
DataObject

Public Member Functions

 Currency ()
 
 getCodeAlpha ()
 
 getCodeNumeric ()
 
 getName ()
 
 setCodeAlpha ($codeAlpha)
 
 setCodeNumeric ($codeNumeric)
 
 setName ($name)
 
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter ($metadataAdapter)
 
 DataObject ()
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
getLocalizedData ($key)
 
 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)
 
 upcastTo ($targetObject)
 

Additional Inherited Members

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

Detailed Description

Basic class describing a currency.

See Also
CurrencyDAO

Definition at line 23 of file Currency.inc.php.

Member Function Documentation

Currency::Currency ( )

Constructor

Definition at line 27 of file Currency.inc.php.

Currency::getCodeAlpha ( )

Get currency alpha code.

Returns
string

Definition at line 55 of file Currency.inc.php.

References DataObject\getData().

Currency::getCodeNumeric ( )

Get currency numeric code.

Returns
int

Definition at line 71 of file Currency.inc.php.

References DataObject\getData().

Currency::getName ( )

Get the name of the currency.

Returns
string

Definition at line 39 of file Currency.inc.php.

References DataObject\getData().

Currency::setCodeAlpha (   $codeAlpha)

Set currency alpha code.

Parameters
$alphaCodestring

Definition at line 63 of file Currency.inc.php.

References DataObject\setData().

Currency::setCodeNumeric (   $codeNumeric)

Set currency numeric code.

Parameters
$codeNumericstring

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

References DataObject\setData().

Currency::setName (   $name)

Set the name of the currency.

Parameters
$namestring

Definition at line 47 of file Currency.inc.php.

References DataObject\setData().


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