Open Journal Systems  3.3.0
NotificationSettingsDAO Class Reference
Inheritance diagram for NotificationSettingsDAO:
DAO

Public Member Functions

 deleteSettingsByNotificationId ($notificationId)
 
 getNotificationSettings ($notificationId)
 
 updateNotificationSetting ($notificationId, $name, $value, $isLocalized=false, $type=null)
 
- 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='')
 

Detailed Description

Operations for retrieving and modifying Notification metadata.

See also
Notification

Definition at line 20 of file NotificationSettingsDAO.inc.php.

Member Function Documentation

◆ deleteSettingsByNotificationId()

NotificationSettingsDAO::deleteSettingsByNotificationId (   $notificationId)

Delete all settings for a notification

Parameters
$notificationId

Definition at line 95 of file NotificationSettingsDAO.inc.php.

References DAO\update().

◆ getNotificationSettings()

NotificationSettingsDAO::getNotificationSettings (   $notificationId)

Update a notification's metadata

Parameters
$notificationIdint
Returns
$params array

Definition at line 27 of file NotificationSettingsDAO.inc.php.

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

◆ updateNotificationSetting()

NotificationSettingsDAO::updateNotificationSetting (   $notificationId,
  $name,
  $value,
  $isLocalized = false,
  $type = null 
)

Store a notification's metadata

Parameters
$notificationIdint
$namestring
$valuestring
$isLocalizedboolean optional
$typestring optional
$paramsarray

Definition at line 58 of file NotificationSettingsDAO.inc.php.

References DAO\convertToDB(), DAO\replace(), and DAO\update().


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