Operations for retrieving and modifying SalesRights objects. More...
Public Member Functions | |
| & | _fromRow (&$row, $callHooks=true) |
| deleteById ($entryId) | |
| deleteObject ($salesRights) | |
| & | getById ($salesRightsId, $monographId=null) |
| & | getByPublicationFormatId ($publicationFormatId) |
| getInsertSalesRightsId () | |
| & | getROWByPublicationFormatId ($publicationFormatId) |
| insertObject (&$salesRights) | |
| newDataObject () | |
| SalesRightsDAO () | |
| updateObject (&$salesRights) | |
Operations for retrieving and modifying SalesRights objects.
Definition at line 18 of file SalesRightsDAO.inc.php.
| & SalesRightsDAO._fromRow | ( | &$ | row, | |
| $ | callHooks = true | |||
| ) |
Internal function to return a SalesRights object from a row.
| $row | array | |
| $callHooks | boolean |
Definition at line 101 of file SalesRightsDAO.inc.php.
References newDataObject().
Referenced by getById(), and getROWByPublicationFormatId().
| SalesRightsDAO.deleteById | ( | $ | entryId | ) |
delete a sales rights entry by id.
| $entryId | int |
Definition at line 181 of file SalesRightsDAO.inc.php.
Referenced by deleteObject().
| SalesRightsDAO.deleteObject | ( | $ | salesRights | ) |
Delete a sales rights entry by id.
| $salesRights | SalesRights |
Definition at line 173 of file SalesRightsDAO.inc.php.
References deleteById().
| & SalesRightsDAO.getById | ( | $ | salesRightsId, | |
| $ | monographId = null | |||
| ) |
Retrieve a sales rights entry by type id.
| $salesRightsId | int | |
| $monographId | optional int |
Definition at line 32 of file SalesRightsDAO.inc.php.
References _fromRow().
| & SalesRightsDAO.getByPublicationFormatId | ( | $ | publicationFormatId | ) |
Retrieve all sales rights for a publication format
| $publicationFormatId | int |
Definition at line 60 of file SalesRightsDAO.inc.php.
| SalesRightsDAO.getInsertSalesRightsId | ( | ) |
Get the ID of the last inserted sales rights entry.
Definition at line 191 of file SalesRightsDAO.inc.php.
Referenced by insertObject().
| & SalesRightsDAO.getROWByPublicationFormatId | ( | $ | publicationFormatId | ) |
Retrieve the specific Sales Rights instance for which ROW is set to true. There should only be one per format.
| $publicationFormatId | int |
Definition at line 73 of file SalesRightsDAO.inc.php.
References _fromRow().
| SalesRightsDAO.insertObject | ( | &$ | salesRights | ) |
Insert a new sales rights entry.
| $salesRights | SalesRights |
Definition at line 122 of file SalesRightsDAO.inc.php.
References getInsertSalesRightsId().
| SalesRightsDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 91 of file SalesRightsDAO.inc.php.
Referenced by _fromRow().
| SalesRightsDAO.SalesRightsDAO | ( | ) |
Constructor
Definition at line 22 of file SalesRightsDAO.inc.php.
| SalesRightsDAO.updateObject | ( | &$ | salesRights | ) |
Update an existing sales rights entry.
| $salesRights | SalesRights |
Definition at line 147 of file SalesRightsDAO.inc.php.
1.7.1