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

Public Member Functions

_returnCurrencyFromRow ($codeAlpha, &$entry)
 
 CurrencyDAO ()
 
 getCurrencies ()
 
 getCurrencyByAlphaCode ($codeAlpha)
 
 getCurrencyFilename ($locale)
 
 newDataObject ()
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 
- Public Attributes inherited from DAO
 $_dataSource
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Detailed Description

Operations for retrieving and modifying Currency objects.

See Also
Currency

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

Member Function Documentation

& CurrencyDAO::_returnCurrencyFromRow (   $codeAlpha,
$entry 
)

Internal function to return a Currency object from a row.

Parameters
$rowarray
Returns
Currency

Definition at line 119 of file CurrencyDAO.inc.php.

References HookRegistry\call(), and newDataObject().

Referenced by getCurrencies(), and getCurrencyByAlphaCode().

CurrencyDAO::CurrencyDAO ( )

Constructor.

Definition at line 25 of file CurrencyDAO.inc.php.

CurrencyDAO::getCurrencies ( )

Retrieve an array of all currencies.

Returns
array of Currencies

Definition at line 97 of file CurrencyDAO.inc.php.

References _returnCurrencyFromRow().

CurrencyDAO::getCurrencyByAlphaCode (   $codeAlpha)

Retrieve a currency by alpha currency ID.

Parameters
$currencyIdint
Returns
Currency

Definition at line 88 of file CurrencyDAO.inc.php.

References _returnCurrencyFromRow().

CurrencyDAO::getCurrencyFilename (   $locale)

Get the filename of the currency database

Parameters
$localestring
Returns
string

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

CurrencyDAO::newDataObject ( )

Instantiate and return a new data object.

Returns
Currency

Definition at line 110 of file CurrencyDAO.inc.php.

Referenced by _returnCurrencyFromRow().


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