Operations for retrieving and modifying Representative (suppliers and agents) objects. More...
Public Member Functions | |
| & | _fromRow (&$row, $callHooks=true) |
| deleteById ($entryId) | |
| deleteObject ($representative) | |
| & | getAgentsByMonographId ($monographId) |
| & | getById ($representativeId, $monographId=null) |
| getInsertRepresentativeId () | |
| & | getSuppliersByMonographId ($monographId) |
| insertObject (&$representative) | |
| newDataObject () | |
| RepresentativeDAO () | |
| updateObject (&$representative) | |
Operations for retrieving and modifying Representative (suppliers and agents) objects.
Definition at line 18 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 94 of file RepresentativeDAO.inc.php.
References newDataObject().
Referenced by getById().
| RepresentativeDAO.deleteById | ( | $ | entryId | ) |
delete a representative entry by id.
| $entryId | int |
Definition at line 185 of file RepresentativeDAO.inc.php.
Referenced by deleteObject().
| RepresentativeDAO.deleteObject | ( | $ | representative | ) |
Delete a representative entry by object.
| $representative | Representative |
Definition at line 177 of file RepresentativeDAO.inc.php.
References deleteById().
| & RepresentativeDAO.getAgentsByMonographId | ( | $ | monographId | ) |
Retrieve all agent representatives for a monograph.
| $monographId | int |
Definition at line 72 of file RepresentativeDAO.inc.php.
| & RepresentativeDAO.getById | ( | $ | representativeId, | |
| $ | monographId = null | |||
| ) |
Retrieve a representative entry by id.
| $representativeId | int | |
| $monographId | optional int |
Definition at line 32 of file RepresentativeDAO.inc.php.
References _fromRow().
| RepresentativeDAO.getInsertRepresentativeId | ( | ) |
Get the ID of the last inserted representative entry.
Definition at line 195 of file RepresentativeDAO.inc.php.
Referenced by insertObject().
| & RepresentativeDAO.getSuppliersByMonographId | ( | $ | monographId | ) |
Retrieve all supplier representatives for a monograph.
| $monographId | int |
Definition at line 59 of file RepresentativeDAO.inc.php.
| RepresentativeDAO.insertObject | ( | &$ | representative | ) |
Insert a new representative entry.
| $representative | Representative |
Definition at line 117 of file RepresentativeDAO.inc.php.
References getInsertRepresentativeId().
| RepresentativeDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 84 of file RepresentativeDAO.inc.php.
Referenced by _fromRow().
| RepresentativeDAO.RepresentativeDAO | ( | ) |
Constructor
Definition at line 22 of file RepresentativeDAO.inc.php.
| RepresentativeDAO.updateObject | ( | &$ | representative | ) |
Update an existing representative entry.
| $representative | Representative |
Definition at line 145 of file RepresentativeDAO.inc.php.
1.7.1