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

Public Member Functions

 _fromRow ($row, $callHooks=true)
 
 deleteById ($entryId)
 
 deleteObject ($market)
 
 getById ($marketId, $monographId=null)
 
 getByPublicationFormatId ($publicationFormatId)
 
 getInsertId ()
 
 insertObject ($market)
 
 MarketDAO ()
 
 newDataObject ()
 
 updateObject ($market)
 
- 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 Market objects.

See Also
Market

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

Member Function Documentation

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

Internal function to return a Market object from a row.

Parameters
$rowarray
$callHooksboolean
Returns
Market

Definition at line 82 of file MarketDAO.inc.php.

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

Referenced by getById().

MarketDAO::deleteById (   $entryId)

Delete a market entry by id.

Parameters
$entryIdint

Definition at line 197 of file MarketDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

MarketDAO::deleteObject (   $market)

Delete a market entry by id.

Parameters
$marketMarket

Definition at line 189 of file MarketDAO.inc.php.

References deleteById().

MarketDAO::getById (   $marketId,
  $monographId = null 
)

Retrieve a market entry by type id.

Parameters
$marketIdint
$monographIdoptional int
Returns
Market

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

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

MarketDAO::getByPublicationFormatId (   $publicationFormatId)

Retrieve all market for a publication format

Parameters
$publicationFormatIdint
Returns
DAOResultFactory containing matching market.

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

References DAO\retrieveRange().

MarketDAO::getInsertId ( )

Get the ID of the last inserted market entry.

Returns
int

Definition at line 207 of file MarketDAO.inc.php.

References DAO\_getInsertId().

Referenced by insertObject().

MarketDAO::insertObject (   $market)

Insert a new market entry.

Parameters
$marketMarket

Definition at line 111 of file MarketDAO.inc.php.

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

MarketDAO::MarketDAO ( )

Constructor

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

MarketDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
Market

Definition at line 72 of file MarketDAO.inc.php.

Referenced by _fromRow().

MarketDAO::updateObject (   $market)

Update an existing market entry.

Parameters
$marketMarket

Definition at line 145 of file MarketDAO.inc.php.

References DAO\update().


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