Public Member Functions

MonographSubjectDAO Class Reference
[Monograph]

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

List of all members.

Public Member Functions

 build ($monographId)
 getAllUniqueSubjects ()
 getLocaleFieldNames ()
 getMonographIdsBySubject ($subject)
 getSubjects ($monographId, $locales)
 insertSubjects ($subjects, $monographId, $deleteFirst=true)
 MonographSubjectDAO ()

Detailed Description

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

See also:
Monograph

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


Member Function Documentation

MonographSubjectDAO.build ( monographId  ) 

Build/fetch and return a controlled vocabulary for subjects.

Parameters:
$monographId int
Returns:
ControlledVocab

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

Referenced by getSubjects(), and insertSubjects().

MonographSubjectDAO.getAllUniqueSubjects (  ) 

Get an array of all of the monograph's Subjects

Returns:
array

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

MonographSubjectDAO.getLocaleFieldNames (  ) 

Get the list of localized additional fields to store.

Returns:
array

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

MonographSubjectDAO.getMonographIdsBySubject ( subject  ) 

Get an array of monographIds that have a given subject

Parameters:
$content string
Returns:
array

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

MonographSubjectDAO.getSubjects ( monographId,
locales 
)

Get Subjects for a monograph.

Parameters:
$monographId int
$locales array
Returns:
array

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

References build().

MonographSubjectDAO.insertSubjects ( subjects,
monographId,
deleteFirst = true 
)

Add an array of subjects

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

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

References build().

MonographSubjectDAO.MonographSubjectDAO (  ) 

Constructor

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


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