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

Public Member Functions

 build ($submissionId)
 
 getAgencies ($submissionId, $locales)
 
 getAllUniqueAgencies ()
 
 getLocaleFieldNames ()
 
 getSubmissionIdsByAgency ($agency)
 
 insertAgencies ($agencies, $submissionId, $deleteFirst=true)
 
 submissionAgencyDAO ()
 
- Public Member Functions inherited from ControlledVocabDAO
 _fromRow ($row)
 
 build ($symbolic, $assocType=0, $assocId=0)
 
 ControlledVocabDAO ()
 
 deleteObject ($controlledVocab)
 
 deleteObjectById ($controlledVocabId)
 
 enumerate ($controlledVocabId, $settingName= 'name')
 
 enumerateBySymbolic ($symbolic, $assocType, $assocId, $settingName= 'name')
 
 getById ($controlledVocabId)
 
 getBySymbolic ($symbolic, $assocType, $assocId)
 
getEntryDAO ()
 
 getInsertId ()
 
 insertObject (&$controlledVocab)
 
 newDataObject ()
 
 updateObject (&$controlledVocab)
 
- 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 a submission's assigned agencies.

See Also
Submission

Definition at line 21 of file SubmissionAgencyDAO.inc.php.

Member Function Documentation

SubmissionAgencyDAO::build (   $submissionId)

Build/fetch and return a controlled vocabulary for agencies.

Parameters
$submissionIdint
Returns
ControlledVocab

Definition at line 34 of file SubmissionAgencyDAO.inc.php.

Referenced by getAgencies(), and insertAgencies().

SubmissionAgencyDAO::getAgencies (   $submissionId,
  $locales 
)

Get agencies for a specified submission ID.

Parameters
$submissionIdint
$localesarray
Returns
array

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

References build(), and DAORegistry\getDAO().

SubmissionAgencyDAO::getAllUniqueAgencies ( )

Get an array of all of the submission's agencies

Returns
array

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

References DAO\retrieve().

SubmissionAgencyDAO::getLocaleFieldNames ( )

Get the list of localized additional fields to store.

Returns
array

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

SubmissionAgencyDAO::getSubmissionIdsByAgency (   $agency)

Get an array of submissionIds that have a given agency

Parameters
$contentstring
Returns
array

Definition at line 96 of file SubmissionAgencyDAO.inc.php.

References DAO\retrieve().

SubmissionAgencyDAO::insertAgencies (   $agencies,
  $submissionId,
  $deleteFirst = true 
)

Add an array of agencies

Parameters
$agenciesarray
$submissionIdint
$deleteFirstboolean
Returns
int

Definition at line 123 of file SubmissionAgencyDAO.inc.php.

References build(), and DAORegistry\getDAO().

SubmissionAgencyDAO::submissionAgencyDAO ( )

Constructor

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


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