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

Public Member Functions

 _fromRow ($row)
 
 deleteAllPubIds ($pressId, $pubIdType)
 
 deleteById ($pressId)
 
 getEnabledPresses ()
 
 insertObject (&$press)
 
 newDataObject ()
 
 PressDAO ()
 
 updateObject (&$press)
 
- Public Member Functions inherited from ContextDAO
 _fromRow ($row)
 
 ContextDAO ()
 
 deleteById ($contextId)
 
 deleteObject ($context)
 
 existsByPath ($path)
 
 getAll ($enabledOnly=false, $rangeInfo=null)
 
 getById ($contextId)
 
 getByPath ($path)
 
 getBySetting ($settingName, $settingValue, $contextId=null)
 
 getInsertId ()
 
 getLocaleFieldNames ()
 
 getNames ($enabledOnly=false)
 
 resequence ()
 
- 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)
 

Protected Member Functions

 _getPrimaryKeyColumn ()
 
 _getSettingsTableName ()
 
 _getTableName ()
 
- Protected Member Functions inherited from ContextDAO
 _getPrimaryKeyColumn ()
 
 _getSettingsTableName ()
 
 _getTableName ()
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Additional Inherited Members

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 
- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying Press objects.

See Also
Press

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

Member Function Documentation

PressDAO::_fromRow (   $row)

Internal function to return a Press object from a row.

Parameters
$rowarray
Returns
Press

Definition at line 40 of file PressDAO.inc.php.

References HookRegistry\call().

PressDAO::_getPrimaryKeyColumn ( )
protected

Get the name of the primary key column for this context.

Returns
string

Definition at line 180 of file PressDAO.inc.php.

PressDAO::_getSettingsTableName ( )
protected

Get the table name for this context's settings table.

Returns
string

Definition at line 172 of file PressDAO.inc.php.

PressDAO::_getTableName ( )
protected

Get the table name for this context.

Returns
string

Definition at line 164 of file PressDAO.inc.php.

PressDAO::deleteAllPubIds (   $pressId,
  $pubIdType 
)

Delete the public IDs of all publishing objects in a press.

Parameters
$pressIdint
$pubIdTypestring One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html).

Definition at line 147 of file PressDAO.inc.php.

References DAORegistry\getDAO().

PressDAO::deleteById (   $pressId)

Delete a press by ID, INCLUDING ALL DEPENDENT ITEMS.

Parameters
$pressIdint

Definition at line 109 of file PressDAO.inc.php.

References DAORegistry\getDAO().

PressDAO::getEnabledPresses ( )

Retrieve all enabled presses

Returns
array Presses ordered by sequence

Definition at line 97 of file PressDAO.inc.php.

References DAO\retrieve().

PressDAO::insertObject ( $press)

Insert a new press.

Parameters
$pressPress

Definition at line 52 of file PressDAO.inc.php.

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

PressDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
Press

Definition at line 31 of file PressDAO.inc.php.

PressDAO::PressDAO ( )

Constructor

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

PressDAO::updateObject ( $press)

Update an existing press.

Parameters
$pressPress

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

References DAO\update().


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