|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| _fromRow ($row) | |
| _newDataObject () | |
| _updateObjectMetadata ($citation) | |
| deleteById ($citationId) | |
| deleteByPublicationId ($publicationId) | |
| deleteObject ($citation) | |
| getAdditionalFieldNames () | |
| getById ($citationId) | |
| getByPublicationId ($publicationId, $rangeInfo=null) | |
| getInsertId () | |
| importCitations ($publicationId, $rawCitationList) | |
| insertObject ($citation) | |
| updateObject ($citation) | |
Public Member Functions inherited from DAO | |
| __construct ($dataSource=null, $callHooks=true) | |
| concat () | |
| convertFromDB ($value, $type) | |
| convertToDB ($value, &$type) | |
| dateFromDB ($d) | |
| datetimeFromDB ($dt) | |
| datetimeToDB ($dt) | |
| dateToDB ($d) | |
| flushCache () | |
| formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
| getAffectedRows () | |
| getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
| getDataSource () | |
| getDirectionMapping ($direction) | |
| getDriver () | |
| getLocaleFieldNames () | |
| getType ($value) | |
| handleError ($dataSource, $sql) | |
| nullOrInt ($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, $content='') |
Data Fields inherited from DAO | |
| $_dataSource | |
Protected Member Functions inherited from DAO | |
| _getInsertId ($table='', $id='') | |
Operations for retrieving and modifying Citation objects.
Definition at line 19 of file CitationDAO.inc.php.
| CitationDAO::_fromRow | ( | $row | ) |
Internal function to return a citation object from a row.
| $row | array |
Definition at line 226 of file CitationDAO.inc.php.
References _newDataObject(), and DAO\getDataObjectSettings().
Referenced by getById().
| CitationDAO::_newDataObject | ( | ) |
Construct a new citation object.
Definition at line 216 of file CitationDAO.inc.php.
Referenced by _fromRow().
| CitationDAO::_updateObjectMetadata | ( | $citation | ) |
Update the citation meta-data
| $citation | Citation |
Definition at line 242 of file CitationDAO.inc.php.
References DAO\updateDataObjectSettings().
Referenced by insertObject(), and updateObject().
| CitationDAO::deleteById | ( | $citationId | ) |
Delete a citation by id.
| $citationId | int |
Definition at line 175 of file CitationDAO.inc.php.
References DAO\update().
Referenced by deleteByPublicationId(), and deleteObject().
| CitationDAO::deleteByPublicationId | ( | $publicationId | ) |
Delete all citations matching a particular publication id.
| $publicationId | int |
Definition at line 189 of file CitationDAO.inc.php.
References deleteById(), and getByPublicationId().
Referenced by importCitations().
| CitationDAO::deleteObject | ( | $citation | ) |
Delete a citation.
| $citation | Citation |
Definition at line 166 of file CitationDAO.inc.php.
References deleteById().
| CitationDAO::getAdditionalFieldNames | ( | ) |
Get a list of additional fields that do not have dedicated accessors.
Reimplemented from DAO.
Definition at line 135 of file CitationDAO.inc.php.
| CitationDAO::getById | ( | $citationId | ) |
Retrieve a citation by id.
| $citationId | integer |
Definition at line 68 of file CitationDAO.inc.php.
References _fromRow(), and DAO\retrieve().
| CitationDAO::getByPublicationId | ( | $publicationId, | |
$rangeInfo = null |
|||
| ) |
Retrieve an array of citations matching a particular publication id.
| $publicationId | int |
| $dbResultRange | DBResultRange the desired range |
Definition at line 118 of file CitationDAO.inc.php.
References DAO\retrieveRange().
Referenced by deleteByPublicationId().
| CitationDAO::getInsertId | ( | ) |
Get the id of the last inserted citation.
Definition at line 204 of file CitationDAO.inc.php.
Referenced by insertObject().
| CitationDAO::importCitations | ( | $publicationId, | |
| $rawCitationList | |||
| ) |
Import citations from a raw citation list of the particular publication.
| $publicationId | int |
| $rawCitationList | string |
Definition at line 87 of file CitationDAO.inc.php.
References deleteByPublicationId(), and insertObject().
| CitationDAO::insertObject | ( | $citation | ) |
Insert a new citation.
| $citation | Citation |
Definition at line 26 of file CitationDAO.inc.php.
References _updateObjectMetadata(), getInsertId(), DAO\retrieve(), and DAO\update().
Referenced by importCitations().
| CitationDAO::updateObject | ( | $citation | ) |
Update an existing citation.
| $citation | Citation |
Definition at line 144 of file CitationDAO.inc.php.
References _updateObjectMetadata(), and DAO\update().