Public Member Functions

MonographLanguageDAO Class Reference
[Monograph]

Operations for retrieving and modifying a monograph's assigned languages. More...

List of all members.

Public Member Functions

 build ($monographId)
 getAllUniqueLanguages ()
 getLanguages ($monographId, $locales)
 getLocaleFieldNames ()
 getMonographIdsByLanguage ($language)
 insertLanguages ($languages, $monographId, $deleteFirst=true)
 MonographLanguageDAO ()

Detailed Description

Operations for retrieving and modifying a monograph's assigned languages.

See also:
Monograph

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


Member Function Documentation

MonographLanguageDAO.build ( monographId  ) 

Build/fetch and return a controlled vocabulary for languages.

Parameters:
$monographId int
Returns:
ControlledVocab

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

Referenced by getLanguages(), and insertLanguages().

MonographLanguageDAO.getAllUniqueLanguages (  ) 

Get an array of all of the monograph's Languages

Returns:
array

Definition at line 76 of file MonographLanguageDAO.inc.php.

MonographLanguageDAO.getLanguages ( monographId,
locales 
)

Get Languages for a monograph.

Parameters:
$monographId int
$locales array
Returns:
array

Definition at line 52 of file MonographLanguageDAO.inc.php.

References build().

MonographLanguageDAO.getLocaleFieldNames (  ) 

Get the list of localized additional fields to store.

Returns:
array

Definition at line 42 of file MonographLanguageDAO.inc.php.

MonographLanguageDAO.getMonographIdsByLanguage ( language  ) 

Get an array of monographIds that have a given language

Parameters:
$content string
Returns:
array

Definition at line 99 of file MonographLanguageDAO.inc.php.

MonographLanguageDAO.insertLanguages ( languages,
monographId,
deleteFirst = true 
)

Add an array of languages

Parameters:
$languages array
$monographId int
$deleteFirst boolean
Returns:
int

Definition at line 126 of file MonographLanguageDAO.inc.php.

References build().

MonographLanguageDAO.MonographLanguageDAO (  ) 

Constructor

Definition at line 24 of file MonographLanguageDAO.inc.php.


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