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

Public Member Functions

 build ($submissionId)
 
 getAllUniqueDisciplines ()
 
 getDisciplines ($submissionId, $locales)
 
 getLocaleFieldNames ()
 
 getSubmissionIdsByDiscipline ($discipline)
 
 insertDisciplines ($disciplines, $submissionId, $deleteFirst=true)
 
 submissionDisciplineDAO ()
 
- 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 disciplines.

See Also
Submission

Definition at line 22 of file SubmissionDisciplineDAO.inc.php.

Member Function Documentation

SubmissionDisciplineDAO::build (   $submissionId)

Build/fetch a submission discipline controlled vocabulary. $submissionId int

Returns
ControlledVocabulary

Definition at line 35 of file SubmissionDisciplineDAO.inc.php.

Referenced by getDisciplines(), and insertDisciplines().

SubmissionDisciplineDAO::getAllUniqueDisciplines ( )

Get an array of all of the submission's disciplines

Returns
array

Definition at line 78 of file SubmissionDisciplineDAO.inc.php.

References DAO\retrieve().

SubmissionDisciplineDAO::getDisciplines (   $submissionId,
  $locales 
)

Get disciplines for a submission.

Parameters
$submissionIdint
$localesarray
Returns
array

Definition at line 53 of file SubmissionDisciplineDAO.inc.php.

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

SubmissionDisciplineDAO::getLocaleFieldNames ( )

Get the list of localized additional fields to store.

Returns
array

Definition at line 43 of file SubmissionDisciplineDAO.inc.php.

SubmissionDisciplineDAO::getSubmissionIdsByDiscipline (   $discipline)

Get an array of submissionIds that have a given discipline

Parameters
$contentstring
Returns
array

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

References DAO\retrieve().

SubmissionDisciplineDAO::insertDisciplines (   $disciplines,
  $submissionId,
  $deleteFirst = true 
)

Add an array of disciplines

Parameters
$disciplinesarray
$submissionIdint
$deleteFirstboolean
Returns
int

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

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

SubmissionDisciplineDAO::submissionDisciplineDAO ( )

Constructor

Definition at line 26 of file SubmissionDisciplineDAO.inc.php.


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