Public Member Functions

SalesRightsDAO Class Reference

Operations for retrieving and modifying SalesRights objects. More...

List of all members.

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)

Detailed Description

Operations for retrieving and modifying SalesRights objects.

See also:
SalesRights

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


Member Function Documentation

& SalesRightsDAO._fromRow ( &$  row,
callHooks = true 
)

Internal function to return a SalesRights object from a row.

Parameters:
$row array
$callHooks boolean
Returns:
SalesRights

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.

Parameters:
$entryId int

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

Referenced by deleteObject().

SalesRightsDAO.deleteObject ( salesRights  ) 

Delete a sales rights entry by id.

Parameters:
$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.

Parameters:
$salesRightsId int
$monographId optional int
Returns:
SalesRights

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

References _fromRow().

& SalesRightsDAO.getByPublicationFormatId ( publicationFormatId  ) 

Retrieve all sales rights for a publication format

Parameters:
$publicationFormatId int
Returns:
DAOResultFactory containing matching sales rights.

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

SalesRightsDAO.getInsertSalesRightsId (  ) 

Get the ID of the last inserted sales rights entry.

Returns:
int

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.

Parameters:
$publicationFormatId int
Returns:
SalesRights

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

References _fromRow().

SalesRightsDAO.insertObject ( &$  salesRights  ) 

Insert a new sales rights entry.

Parameters:
$salesRights SalesRights

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

References getInsertSalesRightsId().

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 22 of file SalesRightsDAO.inc.php.

SalesRightsDAO.updateObject ( &$  salesRights  ) 

Update an existing sales rights entry.

Parameters:
$salesRights SalesRights

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


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