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

Public Member Functions

 deleteByAssoc ($assocType, $assocId)
 
 deleteByMonographId ($monographId)
 
 deleteFeature ($monographId, $assocType, $assocId)
 
 FeatureDAO ()
 
 getMonographIdsByAssoc ($assocType, $assocId)
 
 getSequencesByAssoc ($assocType, $assocId)
 
 insertFeature ($monographId, $assocType, $assocId, $seq)
 
 resequenceByAssoc ($assocType, $assocId)
 
- 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 setting Featured status on various items.

See Also
Feature

Definition at line 17 of file FeatureDAO.inc.php.

Member Function Documentation

FeatureDAO::deleteByAssoc (   $assocType,
  $assocId 
)

Delete a feature by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint

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

References DAO\update().

FeatureDAO::deleteByMonographId (   $monographId)

Delete a feature by ID.

Parameters
$featureIdint
$pressIdint optional

Definition at line 85 of file FeatureDAO.inc.php.

References DAO\update().

FeatureDAO::deleteFeature (   $monographId,
  $assocType,
  $assocId 
)

Delete a feature.

Parameters
$monographIdint
$assocTypeint ASSOC_TYPE_...
$assocIdint

Definition at line 110 of file FeatureDAO.inc.php.

References DAO\update().

FeatureDAO::FeatureDAO ( )

Constructor

Definition at line 21 of file FeatureDAO.inc.php.

FeatureDAO::getMonographIdsByAssoc (   $assocType,
  $assocId 
)

Get monograph IDs by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint
Returns
array Associative array seq => monograph ID

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

References DAO\retrieve().

Referenced by getSequencesByAssoc().

FeatureDAO::getSequencesByAssoc (   $assocType,
  $assocId 
)

Get feature sequences by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint
Returns
array Associative array monograph ID => seq

Definition at line 54 of file FeatureDAO.inc.php.

References getMonographIdsByAssoc().

FeatureDAO::insertFeature (   $monographId,
  $assocType,
  $assocId,
  $seq 
)

Insert a new feature.

Parameters
$monographIdint
$assocTypeint ASSOC_TYPE_...
$assocIdint
$seqint

Definition at line 65 of file FeatureDAO.inc.php.

References DAO\update().

FeatureDAO::resequenceByAssoc (   $assocType,
  $assocId 
)

Resequence features by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint per $assocType
$seqMonographIdif specified, sequence of monograph to return
Returns
array Associative array of id => seq for resequenced set

Definition at line 131 of file FeatureDAO.inc.php.

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


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