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

Public Member Functions

 _fromRow ($row, $callHooks=true)
 
 deleteById ($entryId)
 
 deleteObject ($identificationCode)
 
 getById ($identificationCodeId, $monographId=null)
 
 getByPublicationFormatId ($publicationFormatId)
 
 getInsertId ()
 
 IdentificationCodeDAO ()
 
 insertObject ($identificationCode)
 
 newDataObject ()
 
 updateObject ($identificationCode)
 
- 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 IdentificationCode objects.

See Also
IdentificationCode

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

Member Function Documentation

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

Internal function to return a IdentificationCode object from a row.

Parameters
$rowarray
$callHooksboolean
Returns
IdentificationCode

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

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

Referenced by getById().

IdentificationCodeDAO::deleteById (   $entryId)

delete a identification code by id.

Parameters
$entryIdint

Definition at line 144 of file IdentificationCodeDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

IdentificationCodeDAO::deleteObject (   $identificationCode)

Delete an identification code by id.

Parameters
$identificationCodeIdentificationCode

Definition at line 136 of file IdentificationCodeDAO.inc.php.

References deleteById().

IdentificationCodeDAO::getById (   $identificationCodeId,
  $monographId = null 
)

Retrieve an identification code by type id.

Parameters
$identificationCodeIdint
$monographIdoptional int
Returns
IdentificationCode

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

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

IdentificationCodeDAO::getByPublicationFormatId (   $publicationFormatId)

Retrieve all identification codes for a publication format

Parameters
$publicationFormatIdint
Returns
DAOResultFactory containing matching identification codes

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

References DAO\retrieveRange().

IdentificationCodeDAO::getInsertId ( )

Get the ID of the last inserted identification code.

Returns
int

Definition at line 154 of file IdentificationCodeDAO.inc.php.

References DAO\_getInsertId().

Referenced by insertObject().

IdentificationCodeDAO::IdentificationCodeDAO ( )

Constructor

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

IdentificationCodeDAO::insertObject (   $identificationCode)

Insert a new identification code.

Parameters
$identificationCodeIdentificationCode

Definition at line 98 of file IdentificationCodeDAO.inc.php.

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

IdentificationCodeDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
IdentificationCode

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

Referenced by _fromRow().

IdentificationCodeDAO::updateObject (   $identificationCode)

Update an existing identification code.

Parameters
$identificationCodeIdentificationCode

Definition at line 119 of file IdentificationCodeDAO.inc.php.

References DAO\update().


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