Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
ThesisDAO Class Reference
Inheritance diagram for ThesisDAO:
DAO

Public Member Functions

_returnThesisFromRow (&$row)
 
 deleteThesesByJournal ($journalId)
 
 deleteThesis ($thesis)
 
 deleteThesisById ($thesisId)
 
getActiveThesesByJournalId ($journalId, $searchType=null, $search=null, $searchMatch=null, $dateFrom=null, $dateTo=null, $resultOrder=null, $rangeInfo=null)
 
 getInsertThesisId ()
 
getMostRecentActiveThesisByJournalId ($journalId)
 
getThesesByJournalId ($journalId, $searchType=null, $search=null, $searchMatch=null, $dateFrom=null, $dateTo=null, $resultOrder=null, $rangeInfo=null)
 
getThesis ($thesisId)
 
 getThesisJournalId ($thesisId)
 
 insertThesis (&$thesis)
 
 isThesisActive ($thesisId)
 
 ThesisDAO ($parentPluginName)
 
 updateThesis (&$thesis)
 
- 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 ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 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

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying Thesis objects.

Definition at line 39 of file ThesisDAO.inc.php.

Member Function Documentation

& ThesisDAO::_returnThesisFromRow ( $row)

Internal function to return a Thesis object from a row.

Parameters
$rowarray
Returns
Thesis

Definition at line 121 of file ThesisDAO.inc.php.

References DAO\dateFromDB(), and PluginRegistry\getPlugin().

Referenced by getMostRecentActiveThesisByJournalId(), and getThesis().

ThesisDAO::deleteThesesByJournal (   $journalId)

Delete theses by journal ID.

Parameters
$journalIdint

Definition at line 307 of file ThesisDAO.inc.php.

References DAO\update().

ThesisDAO::deleteThesis (   $thesis)

Delete a thesis.

Parameters
$thesisThesis
Returns
boolean

Definition at line 288 of file ThesisDAO.inc.php.

References deleteThesisById().

ThesisDAO::deleteThesisById (   $thesisId)

Delete a thesis by thesis ID.

Parameters
$thesisIdint
Returns
boolean

Definition at line 297 of file ThesisDAO.inc.php.

References DAO\update().

Referenced by deleteThesis().

& ThesisDAO::getActiveThesesByJournalId (   $journalId,
  $searchType = null,
  $search = null,
  $searchMatch = null,
  $dateFrom = null,
  $dateTo = null,
  $resultOrder = null,
  $rangeInfo = null 
)

Retrieve an array of theses with active status matching a particular journal ID.

Parameters
$journalIdint
$searchTypeint optional, which field to search
$searchstring optional, string to match
$searchMatchstring optional, type of match ('is' vs. 'contains')
$dateFromdate optional, starting approval date
$dateTodate optional, ending approval date
$resultOrderint optional, order of the results
$rangeInfoobject DBRangeInfo object describing range of results to return
Returns
object DAOResultFactory containing matching Theses

Definition at line 424 of file ThesisDAO.inc.php.

References DAO\datetimeToDB(), PluginRegistry\getPlugin(), and DAO\retrieveRange().

ThesisDAO::getInsertThesisId ( )

Get the ID of the last inserted thesis.

Returns
int

Definition at line 518 of file ThesisDAO.inc.php.

References DAO\getInsertId().

Referenced by insertThesis().

& ThesisDAO::getMostRecentActiveThesisByJournalId (   $journalId)

Retrieve most recently submitted active thesis by journal ID.

Parameters
$journalIdint
Returns
Thesis

Definition at line 74 of file ThesisDAO.inc.php.

References _returnThesisFromRow(), and DAO\retrieve().

& ThesisDAO::getThesesByJournalId (   $journalId,
  $searchType = null,
  $search = null,
  $searchMatch = null,
  $dateFrom = null,
  $dateTo = null,
  $resultOrder = null,
  $rangeInfo = null 
)

Retrieve an array of theses matching a particular journal ID.

Parameters
$journalIdint
$searchTypeint optional, which field to search
$searchstring optional, string to match
$searchMatchstring optional, type of match ('is' vs. 'contains')
$dateFromdate optional, starting approval date
$dateTodate optional, ending approval date
$resultOrderint optional, order of the results
$rangeInfoobject DBRangeInfo object describing range of results to return
Returns
object DAOResultFactory containing matching Theses

Definition at line 325 of file ThesisDAO.inc.php.

References DAO\datetimeToDB(), and DAO\retrieveRange().

& ThesisDAO::getThesis (   $thesisId)

Retrieve an thesis by thesis ID.

Parameters
$thesisIdint
Returns
Thesis

Definition at line 56 of file ThesisDAO.inc.php.

References _returnThesisFromRow(), and DAO\retrieve().

ThesisDAO::getThesisJournalId (   $thesisId)

Retrieve thesis journal ID by thesis ID.

Parameters
$thesisIdint
Returns
int

Definition at line 92 of file ThesisDAO.inc.php.

References DAO\retrieve().

ThesisDAO::insertThesis ( $thesis)

Insert a new Thesis.

Parameters
$thesisThesis
Returns
int

Definition at line 166 of file ThesisDAO.inc.php.

References DAO\datetimeToDB(), DAO\dateToDB(), getInsertThesisId(), and DAO\update().

ThesisDAO::isThesisActive (   $thesisId)

Check whether thesis with thesis ID has active status.

Parameters
$thesisIdint
Returns
boolean

Definition at line 105 of file ThesisDAO.inc.php.

References PluginRegistry\getPlugin(), and DAO\retrieve().

ThesisDAO::ThesisDAO (   $parentPluginName)

Constructor

Definition at line 46 of file ThesisDAO.inc.php.

ThesisDAO::updateThesis ( $thesis)

Update an existing thesis.

Parameters
$thesisThesis
Returns
boolean

Definition at line 213 of file ThesisDAO.inc.php.

References DAO\datetimeToDB(), DAO\dateToDB(), and DAO\update().


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