Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SalesRightsDAO Class Reference
Inheritance diagram for SalesRightsDAO:
DAO

Public Member Functions

 _fromRow ($row, $callHooks=true)
 
 deleteById ($entryId)
 
 deleteObject ($salesRights)
 
 getById ($salesRightsId, $monographId=null)
 
 getByPublicationFormatId ($publicationFormatId)
 
 getInsertId ()
 
 getROWByPublicationFormatId ($publicationFormatId)
 
 insertObject ($salesRights)
 
 newDataObject ()
 
 SalesRightsDAO ()
 
 updateObject ($salesRights)
 
- 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 ()
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 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

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 
- Public Attributes inherited from DAO
 $_dataSource
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Detailed Description

Operations for retrieving and modifying SalesRights objects.

See Also
SalesRights

Definition at line 19 of file SalesRightsDAO.inc.php.

Member Function Documentation

SalesRightsDAO::_fromRow (   $row,
  $callHooks = true 
)

Internal function to return a SalesRights object from a row.

Parameters
$rowarray
$callHooksboolean
Returns
SalesRights

Definition at line 101 of file SalesRightsDAO.inc.php.

References HookRegistry\call(), and newDataObject().

Referenced by getById(), and getROWByPublicationFormatId().

SalesRightsDAO::deleteById (   $entryId)

delete a sales rights entry by id.

Parameters
$entryIdint

Definition at line 181 of file SalesRightsDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

SalesRightsDAO::deleteObject (   $salesRights)

Delete a sales rights entry by id.

Parameters
$salesRightsSalesRights

Definition at line 173 of file SalesRightsDAO.inc.php.

References deleteById().

SalesRightsDAO::getById (   $salesRightsId,
  $monographId = null 
)

Retrieve a sales rights entry by type id.

Parameters
$salesRightsIdint
$monographIdoptional int
Returns
SalesRights

Definition at line 33 of file SalesRightsDAO.inc.php.

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

SalesRightsDAO::getByPublicationFormatId (   $publicationFormatId)

Retrieve all sales rights for a publication format

Parameters
$publicationFormatIdint
Returns
DAOResultFactory containing matching sales rights.

Definition at line 61 of file SalesRightsDAO.inc.php.

References DAO\retrieveRange().

SalesRightsDAO::getInsertId ( )

Get the ID of the last inserted sales rights entry.

Returns
int

Definition at line 191 of file SalesRightsDAO.inc.php.

References DAO\_getInsertId().

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.

Parameters
$publicationFormatIdint
Returns
SalesRights

Definition at line 73 of file SalesRightsDAO.inc.php.

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

SalesRightsDAO::insertObject (   $salesRights)

Insert a new sales rights entry.

Parameters
$salesRightsSalesRights

Definition at line 122 of file SalesRightsDAO.inc.php.

References getInsertId(), and DAO\update().

SalesRightsDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
SalesRights

Definition at line 91 of file SalesRightsDAO.inc.php.

Referenced by _fromRow().

SalesRightsDAO::SalesRightsDAO ( )

Constructor

Definition at line 23 of file SalesRightsDAO.inc.php.

SalesRightsDAO::updateObject (   $salesRights)

Update an existing sales rights entry.

Parameters
$salesRightsSalesRights

Definition at line 147 of file SalesRightsDAO.inc.php.

References DAO\update().


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