Open Monograph Press  3.3.0
IdentificationCodeDAO Class Reference
Inheritance diagram for IdentificationCodeDAO:
DAO

Public Member Functions

 __construct ()
 
 _fromRow ($row, $callHooks=true)
 
 deleteById ($entryId)
 
 deleteObject ($identificationCode)
 
 getById ($identificationCodeId, $publicationId=null)
 
 getByPublicationFormatId ($publicationFormatId)
 
 getInsertId ()
 
 insertObject ($identificationCode)
 
 newDataObject ()
 
 updateObject ($identificationCode)
 
- Public Member Functions inherited from DAO
 __construct ($dataSource=null, $callHooks=true)
 
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAdditionalFieldNames ()
 
 getAffectedRows ()
 
 getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject)
 
 getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getLocaleFieldNames ()
 
 getType ($value)
 
 handleError ($dataSource, $sql)
 
 nullOrInt ($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, $content='')
 
- Data Fields 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.

Constructor & Destructor Documentation

◆ __construct()

IdentificationCodeDAO::__construct ( )

Constructor

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

Member Function Documentation

◆ _fromRow()

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().

◆ deleteById()

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().

◆ deleteObject()

IdentificationCodeDAO::deleteObject (   $identificationCode)

Delete an identification code by id.

Parameters
$identificationCodeIdentificationCode

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

References deleteById().

◆ getById()

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

Retrieve an identification code by type id.

Parameters
$identificationCodeIdint
$publicationIdoptional int
Returns
IdentificationCode

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

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

◆ getByPublicationFormatId()

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().

◆ getInsertId()

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().

◆ insertObject()

IdentificationCodeDAO::insertObject (   $identificationCode)

Insert a new identification code.

Parameters
$identificationCodeIdentificationCode

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

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

◆ newDataObject()

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().

◆ updateObject()

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: