|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct () | |
| deleteByAssoc ($assocType, $assocId) | |
| deleteByMonographId ($monographId) | |
| deleteFeature ($monographId, $assocType, $assocId) | |
| getFeaturedAll ($monographId) | |
| getMonographIdsByAssoc ($assocType, $assocId) | |
| getSequencePosition ($monographId, $assocType, $assocId) | |
| getSequencesByAssoc ($assocType, $assocId) | |
| insertFeature ($monographId, $assocType, $assocId, $seq) | |
| isFeatured ($monographId, $assocType, $assocId) | |
| resequenceByAssoc ($assocType, $assocId) | |
| setSequencePosition ($monographId, $assocType, $assocId, $sequencePosition) | |
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='') | |
Operations for setting Featured status on various items.
Definition at line 17 of file FeatureDAO.inc.php.
| FeatureDAO::__construct | ( | ) |
Constructor
Definition at line 21 of file FeatureDAO.inc.php.
| FeatureDAO::deleteByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Delete a feature by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 97 of file FeatureDAO.inc.php.
References DAO\update().
| FeatureDAO::deleteByMonographId | ( | $monographId | ) |
Delete a feature by ID.
| $featureId | int |
| $pressId | int optional |
Definition at line 85 of file FeatureDAO.inc.php.
References DAO\update().
| FeatureDAO::deleteFeature | ( | $monographId, | |
| $assocType, | |||
| $assocId | |||
| ) |
Delete a feature.
| $monographId | int |
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 110 of file FeatureDAO.inc.php.
References DAO\update().
| FeatureDAO::getFeaturedAll | ( | $monographId | ) |
Return the monograph's featured settings in all assoc types
| $monographId | int The monograph id to get the feature state. |
Definition at line 151 of file FeatureDAO.inc.php.
References DAO\retrieve().
| FeatureDAO::getMonographIdsByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Get monograph IDs by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 31 of file FeatureDAO.inc.php.
References DAO\retrieve().
Referenced by getSequencesByAssoc().
| FeatureDAO::getSequencePosition | ( | $monographId, | |
| $assocType, | |||
| $assocId | |||
| ) |
Get the current sequence position of the passed monograph id.
| $monographId | int The monograph id to check the sequence position. |
| $assocType | int The monograph associated object type. |
| $assocId | int The monograph associated object id. |
Definition at line 178 of file FeatureDAO.inc.php.
References DAO\retrieve().
| FeatureDAO::getSequencesByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Get feature sequences by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 54 of file FeatureDAO.inc.php.
References getMonographIdsByAssoc().
| FeatureDAO::insertFeature | ( | $monographId, | |
| $assocType, | |||
| $assocId, | |||
| $seq | |||
| ) |
Insert a new feature.
| $monographId | int |
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
| $seq | int |
Definition at line 65 of file FeatureDAO.inc.php.
References DAO\update().
| FeatureDAO::isFeatured | ( | $monographId, | |
| $assocType, | |||
| $assocId | |||
| ) |
Check if the passed monograph id is featured on the passed associated object.
| $monographId | int The monograph id to check the feature state. |
| $assocType | int The associated object type that the monograph is featured. |
| $assocId | int The associated object id that the monograph is featured. |
Definition at line 134 of file FeatureDAO.inc.php.
References DAO\retrieve().
| FeatureDAO::resequenceByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Resequence features by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int per $assocType |
| $seqMonographId | if specified, sequence of monograph to return |
Definition at line 204 of file FeatureDAO.inc.php.
References DAO\retrieve(), and DAO\update().
| FeatureDAO::setSequencePosition | ( | $monographId, | |
| $assocType, | |||
| $assocId, | |||
| $sequencePosition | |||
| ) |
Definition at line 190 of file FeatureDAO.inc.php.
References DAO\update().