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

Public Member Functions

 _fromRow ($row, $callHooks=true)
 
 deleteById ($entryId)
 
 deleteObject ($representative)
 
 getAgentsByMonographId ($monographId)
 
 getById ($representativeId, $monographId=null)
 
 getInsertId ()
 
 getSuppliersByMonographId ($monographId)
 
 insertObject ($representative)
 
 newDataObject ()
 
 RepresentativeDAO ()
 
 updateObject ($representative)
 
- 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 Representative (suppliers and agents) objects.

See Also
Representative

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

Member Function Documentation

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

Internal function to return a Representative object from a row.

Parameters
$rowarray
$callHooksboolean
Returns
Representative

Definition at line 94 of file RepresentativeDAO.inc.php.

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

Referenced by getById().

RepresentativeDAO::deleteById (   $entryId)

delete a representative entry by id.

Parameters
$entryIdint

Definition at line 185 of file RepresentativeDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

RepresentativeDAO::deleteObject (   $representative)

Delete a representative entry by object.

Parameters
$representativeRepresentative

Definition at line 177 of file RepresentativeDAO.inc.php.

References deleteById().

RepresentativeDAO::getAgentsByMonographId (   $monographId)

Retrieve all agent representatives for a monograph.

Parameters
$monographIdint
Returns
DAOResultFactory containing matching representatives.

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

References DAO\retrieveRange().

RepresentativeDAO::getById (   $representativeId,
  $monographId = null 
)

Retrieve a representative entry by id.

Parameters
$representativeIdint
$monographIdoptional int
Returns
Representative

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

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

RepresentativeDAO::getInsertId ( )

Get the ID of the last inserted representative entry.

Returns
int

Definition at line 195 of file RepresentativeDAO.inc.php.

References DAO\_getInsertId().

Referenced by insertObject().

RepresentativeDAO::getSuppliersByMonographId (   $monographId)

Retrieve all supplier representatives for a monograph.

Parameters
$monographIdint
Returns
DAOResultFactory containing matching representatives.

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

References DAO\retrieveRange().

RepresentativeDAO::insertObject (   $representative)

Insert a new representative entry.

Parameters
$representativeRepresentative

Definition at line 117 of file RepresentativeDAO.inc.php.

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

RepresentativeDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
Representative

Definition at line 84 of file RepresentativeDAO.inc.php.

Referenced by _fromRow().

RepresentativeDAO::RepresentativeDAO ( )

Constructor

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

RepresentativeDAO::updateObject (   $representative)

Update an existing representative entry.

Parameters
$representativeRepresentative

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

References DAO\update().


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