Public Member Functions

MonographAgencyDAO Class Reference
[Monograph]

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

List of all members.

Public Member Functions

 build ($monographId)
 getAgencies ($monographId, $locales)
 getAllUniqueAgencies ()
 getLocaleFieldNames ()
 getMonographIdsByAgency ($agency)
 insertAgencies ($agencies, $monographId, $deleteFirst=true)
 MonographAgencyDAO ()

Detailed Description

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

See also:
Monograph

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


Member Function Documentation

MonographAgencyDAO.build ( monographId  ) 

Build/fetch and return a controlled vocabulary for agencies.

Parameters:
$monographId int
Returns:
ControlledVocab

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

Referenced by getAgencies(), and insertAgencies().

MonographAgencyDAO.getAgencies ( monographId,
locales 
)

Get agencies for a specified monograph ID.

Parameters:
$monographId int
$locales array
Returns:
array

Definition at line 51 of file MonographAgencyDAO.inc.php.

References build().

MonographAgencyDAO.getAllUniqueAgencies (  ) 

Get an array of all of the monograph's agencies

Returns:
array

Definition at line 75 of file MonographAgencyDAO.inc.php.

MonographAgencyDAO.getLocaleFieldNames (  ) 

Get the list of localized additional fields to store.

Returns:
array

Definition at line 41 of file MonographAgencyDAO.inc.php.

MonographAgencyDAO.getMonographIdsByAgency ( agency  ) 

Get an array of monographIds that have a given agency

Parameters:
$content string
Returns:
array

Definition at line 98 of file MonographAgencyDAO.inc.php.

MonographAgencyDAO.insertAgencies ( agencies,
monographId,
deleteFirst = true 
)

Add an array of agencies

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

Definition at line 125 of file MonographAgencyDAO.inc.php.

References build().

MonographAgencyDAO.MonographAgencyDAO (  ) 

Constructor

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


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