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

Public Member Functions

_getCache ($locale=null)
 
_returnLanguageFromRow ($code, &$entry)
 
 getLanguageByCode ($code, $locale=null)
 
 getLanguageFilename ($locale)
 
 getLanguageNames ($locale=null)
 
 getLanguages ($locale=null)
 
 LanguageDAO ()
 
 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 Language objects.

See Also
Language

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

Member Function Documentation

& LanguageDAO::_getCache (   $locale = null)

Return the language cache.

Parameters
$localestring

Definition at line 33 of file LanguageDAO.inc.php.

References Registry\get(), getLanguageFilename(), and AppLocale\getLocale().

Referenced by getLanguageByCode(), getLanguageNames(), and getLanguages().

& LanguageDAO::_returnLanguageFromRow (   $code,
$entry 
)

Internal function to return a Language object from a row.

Parameters
$rowarray
Returns
Language

Definition at line 153 of file LanguageDAO.inc.php.

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

Referenced by getLanguageByCode(), and getLanguages().

LanguageDAO::getLanguageByCode (   $code,
  $locale = null 
)

Retrieve a language by code.

Parameters
$codestring ISO 639-1
$localestring
Returns
Language

Definition at line 104 of file LanguageDAO.inc.php.

References _getCache(), and _returnLanguageFromRow().

LanguageDAO::getLanguageFilename (   $locale)

Get the filename of the language database

Parameters
$localestring
Returns
string

Definition at line 94 of file LanguageDAO.inc.php.

Referenced by _getCache().

LanguageDAO::getLanguageNames (   $locale = null)

Retrieve an array of all languages names.

Parameters
$localean optional locale to use
Returns
array of Languages names

Definition at line 128 of file LanguageDAO.inc.php.

References _getCache().

LanguageDAO::getLanguages (   $locale = null)

Retrieve an array of all languages.

Parameters
$localestring an optional locale to use
Returns
array of Languages

Definition at line 114 of file LanguageDAO.inc.php.

References _getCache(), and _returnLanguageFromRow().

LanguageDAO::LanguageDAO ( )

Constructor.

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

LanguageDAO::newDataObject ( )

Instantiate a new data object.

Returns
Language

Definition at line 144 of file LanguageDAO.inc.php.

Referenced by _returnLanguageFromRow().


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