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

Public Member Functions

 _fromRow ($row, $callHooks=true)
 
 deleteById ($entryId)
 
 deleteObject ($publicationDate)
 
 getById ($publicationDateId, $monographId=null)
 
 getByPublicationFormatId ($publicationFormatId)
 
 getInsertId ()
 
 insertObject ($publicationDate)
 
 newDataObject ()
 
 PublicationDateDAO ()
 
 updateObject ($publicationDate)
 
- 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 PublicationDate objects.

See Also
PublicationDate

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

Member Function Documentation

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

Internal function to return a PublicationDate object from a row.

Parameters
$rowarray
$callHooksboolean
Returns
PublicationDate

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

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

Referenced by getById().

PublicationDateDAO::deleteById (   $entryId)

delete a publication date by id.

Parameters
$entryIdint

Definition at line 149 of file PublicationDateDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

PublicationDateDAO::deleteObject (   $publicationDate)

Delete a publication date.

Parameters
$publicationDatePublicationDate

Definition at line 141 of file PublicationDateDAO.inc.php.

References deleteById().

PublicationDateDAO::getById (   $publicationDateId,
  $monographId = null 
)

Retrieve a publication date by type id.

Parameters
$publicationDateIdint
$monographIdoptional int
Returns
PublicationDate

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

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

PublicationDateDAO::getByPublicationFormatId (   $publicationFormatId)

Retrieve all publication dates for an assigned publication format

Parameters
$publicationFormatIdint
Returns
DAOResultFactory containing matching publication dates

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

References DAO\retrieveRange().

PublicationDateDAO::getInsertId ( )

Get the ID of the last inserted publication date.

Returns
int

Definition at line 159 of file PublicationDateDAO.inc.php.

References DAO\_getInsertId().

Referenced by insertObject().

PublicationDateDAO::insertObject (   $publicationDate)

Insert a new publication date.

Parameters
$publicationDatePublicationDate

Definition at line 101 of file PublicationDateDAO.inc.php.

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

PublicationDateDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
PublicationDate

Definition at line 74 of file PublicationDateDAO.inc.php.

Referenced by _fromRow().

PublicationDateDAO::PublicationDateDAO ( )

Constructor

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

PublicationDateDAO::updateObject (   $publicationDate)

Update an existing publication date.

Parameters
$publicationDatePublicationDate

Definition at line 123 of file PublicationDateDAO.inc.php.

References DAO\update().


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