Open Journal Systems
3.3.0
|
Public Member Functions | |
_fromRow ($row) | |
deleteById ($typeId, $journalId=null) | |
deleteByJournal ($journalId) | |
getById ($typeId, $journalId=null) | |
getByInstitutional ($journalId, $institutional=false, $disablePublicDisplay=null, $rangeInfo=null) | |
getByJournalId ($journalId, $rangeInfo=null) | |
getInsertId () | |
getLocaleFieldNames () | |
getSubscriptionTypeDisablePublicDisplay ($typeId) | |
getSubscriptionTypeInstitutional ($typeId) | |
getSubscriptionTypeMembership ($typeId) | |
getSubscriptionTypeName ($typeId) | |
insertObject ($subscriptionType) | |
newDataObject () | |
resequenceSubscriptionTypes ($journalId) | |
subscriptionTypeExistsByTypeId ($typeId, $journalId) | |
subscriptionTypesExistByInstitutional ($journalId, $institutional=false) | |
updateLocaleFields ($subscriptionType) | |
updateObject ($subscriptionType) | |
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 () | |
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 retrieving and modifying SubscriptionType objects.
Definition at line 19 of file SubscriptionTypeDAO.inc.php.
SubscriptionTypeDAO::_fromRow | ( | $row | ) |
Internal function to return a SubscriptionType object from a row.
$row | array |
Definition at line 149 of file SubscriptionTypeDAO.inc.php.
References HookRegistry\call(), DAO\getDataObjectSettings(), and newDataObject().
Referenced by getById().
SubscriptionTypeDAO::deleteById | ( | $typeId, | |
$journalId = null |
|||
) |
Delete a subscription type by ID. Note that all subscriptions with this type ID are also deleted.
$typeId | int Subscription type ID |
$journalId | int Optional journal ID |
Definition at line 256 of file SubscriptionTypeDAO.inc.php.
References getById(), DAORegistry\getDAO(), and DAO\update().
SubscriptionTypeDAO::deleteByJournal | ( | $journalId | ) |
Delete subscription types by journal ID. Note that all subscriptions with corresponding types are also deleted.
$journalId | int |
Definition at line 271 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve().
SubscriptionTypeDAO::getById | ( | $typeId, | |
$journalId = null |
|||
) |
Retrieve a subscription type by ID.
$typeId | int |
$journalId | int optional |
Definition at line 34 of file SubscriptionTypeDAO.inc.php.
References _fromRow(), and DAO\retrieve().
Referenced by deleteById().
SubscriptionTypeDAO::getByInstitutional | ( | $journalId, | |
$institutional = false , |
|||
$disablePublicDisplay = null , |
|||
$rangeInfo = null |
|||
) |
Retrieve subscription types matching a particular journal ID and institutional flag.
$journalId | int |
$institutional | bool |
$disablePublicDisplay | bool|null |
Definition at line 309 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieveRange().
SubscriptionTypeDAO::getByJournalId | ( | $journalId, | |
$rangeInfo = null |
|||
) |
Retrieve subscription types matching a particular journal ID.
$journalId | int |
Definition at line 293 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieveRange().
SubscriptionTypeDAO::getInsertId | ( | ) |
Get the ID of the last inserted subscription type.
Definition at line 349 of file SubscriptionTypeDAO.inc.php.
References DAO\_getInsertId().
Referenced by insertObject().
SubscriptionTypeDAO::getLocaleFieldNames | ( | ) |
Get the list of field names for which localized data is used.
Reimplemented from DAO.
Definition at line 173 of file SubscriptionTypeDAO.inc.php.
SubscriptionTypeDAO::getSubscriptionTypeDisablePublicDisplay | ( | $typeId | ) |
Retrieve public display flag by ID.
$typeId | int |
Definition at line 110 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve().
SubscriptionTypeDAO::getSubscriptionTypeInstitutional | ( | $typeId | ) |
Retrieve institutional flag by ID.
$typeId | int |
Definition at line 78 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve().
SubscriptionTypeDAO::getSubscriptionTypeMembership | ( | $typeId | ) |
Retrieve membership flag by ID.
$typeId | int |
Definition at line 94 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve().
SubscriptionTypeDAO::getSubscriptionTypeName | ( | $typeId | ) |
Retrieve subscription type name by ID.
$typeId | int |
Definition at line 58 of file SubscriptionTypeDAO.inc.php.
References AppLocale\getLocale(), AppLocale\getPrimaryLocale(), and DAO\retrieve().
SubscriptionTypeDAO::insertObject | ( | $subscriptionType | ) |
Insert a new SubscriptionType.
$subscriptionType | SubscriptionType |
Definition at line 192 of file SubscriptionTypeDAO.inc.php.
References getInsertId(), DAO\update(), and updateLocaleFields().
SubscriptionTypeDAO::newDataObject | ( | ) |
Create a new subscription type.
Definition at line 24 of file SubscriptionTypeDAO.inc.php.
Referenced by _fromRow().
SubscriptionTypeDAO::resequenceSubscriptionTypes | ( | $journalId | ) |
Sequentially renumber subscription types in their sequence order.
Definition at line 356 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve(), and DAO\update().
SubscriptionTypeDAO::subscriptionTypeExistsByTypeId | ( | $typeId, | |
$journalId | |||
) |
Check if a subscription type exists with the given type id for a journal.
$typeId | int |
$journalId | int |
Definition at line 127 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve().
SubscriptionTypeDAO::subscriptionTypesExistByInstitutional | ( | $journalId, | |
$institutional = false |
|||
) |
Check if at least one subscription type exists for a given journal by institutional flag.
$journalId | int |
$institutional | bool |
Definition at line 331 of file SubscriptionTypeDAO.inc.php.
References DAO\retrieve().
SubscriptionTypeDAO::updateLocaleFields | ( | $subscriptionType | ) |
Update the localized settings for this object
$subscriptionType | object |
Definition at line 181 of file SubscriptionTypeDAO.inc.php.
References DAO\updateDataObjectSettings().
Referenced by insertObject(), and updateObject().
SubscriptionTypeDAO::updateObject | ( | $subscriptionType | ) |
Update an existing subscription type.
$subscriptionType | SubscriptionType |
Definition at line 220 of file SubscriptionTypeDAO.inc.php.
References DAO\update(), and updateLocaleFields().