|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| _fromRow ($row, $callHooks=true) | |
| deleteById ($entryId) | |
| deleteObject ($representative) | |
| getAgentsByMonographId ($monographId) | |
| getById ($representativeId, $monographId=null) | |
| getInsertId () | |
| getSuppliersByMonographId ($monographId) | |
| insertObject ($representative) | |
| newDataObject () | |
| updateObject ($representative) | |
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) | |
| getAdditionalFieldNames () | |
| 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 Representative (suppliers and agents) objects.
Definition at line 19 of file RepresentativeDAO.inc.php.
| RepresentativeDAO::_fromRow | ( | $row, | |
$callHooks = true |
|||
| ) |
Internal function to return a Representative object from a row.
| $row | array |
| $callHooks | boolean |
Definition at line 87 of file RepresentativeDAO.inc.php.
References HookRegistry\call(), and newDataObject().
Referenced by getById().
| RepresentativeDAO::deleteById | ( | $entryId | ) |
delete a representative entry by id.
| $entryId | int |
Definition at line 174 of file RepresentativeDAO.inc.php.
References DAO\update().
Referenced by deleteObject().
| RepresentativeDAO::deleteObject | ( | $representative | ) |
Delete a representative entry by object.
| $representative | Representative |
Definition at line 166 of file RepresentativeDAO.inc.php.
References deleteById().
| RepresentativeDAO::getAgentsByMonographId | ( | $monographId | ) |
Retrieve all agent representatives for a monograph.
| $monographId | int |
Definition at line 66 of file RepresentativeDAO.inc.php.
References DAO\retrieveRange().
| RepresentativeDAO::getById | ( | $representativeId, | |
$monographId = null |
|||
| ) |
Retrieve a representative entry by id.
| $representativeId | int |
| $monographId | optional int |
Definition at line 26 of file RepresentativeDAO.inc.php.
References _fromRow(), and DAO\retrieve().
| RepresentativeDAO::getInsertId | ( | ) |
Get the ID of the last inserted representative entry.
Definition at line 184 of file RepresentativeDAO.inc.php.
References DAO\_getInsertId().
Referenced by insertObject().
| RepresentativeDAO::getSuppliersByMonographId | ( | $monographId | ) |
Retrieve all supplier representatives for a monograph.
| $monographId | int |
Definition at line 54 of file RepresentativeDAO.inc.php.
References DAO\retrieveRange().
| RepresentativeDAO::insertObject | ( | $representative | ) |
Insert a new representative entry.
| $representative | Representative |
Definition at line 109 of file RepresentativeDAO.inc.php.
References getInsertId(), and DAO\update().
| RepresentativeDAO::newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 77 of file RepresentativeDAO.inc.php.
Referenced by _fromRow().
| RepresentativeDAO::updateObject | ( | $representative | ) |
Update an existing representative entry.
| $representative | Representative |
Definition at line 136 of file RepresentativeDAO.inc.php.
References DAO\update().