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

Public Member Functions

 deleteSetting ($userId, $name, $pressId=null)
 
getSetting ($userId, $name, $pressId=null)
 
getSettingsByPress ($userId, $pressId=null)
 
getUsersBySetting ($name, $value, $type=null, $pressId=null)
 
 updateSetting ($userId, $name, $value, $type=null, $pressId=null)
 
 UserSettingsDAO ()
 
- Public Member Functions inherited from PKPUserSettingsDAO
 deleteSetting ($userId, $name, $assocType=null, $assocId=null)
 
 deleteSettings ($userId)
 
getSetting ($userId, $name, $assocType=null, $assocId=null)
 
getSettingsByAssoc ($userId, $assocType=null, $assocId=null)
 
getUsersBySetting ($name, $value, $type=null, $assocType=null, $assocId=null)
 
 PKPUserSettingsDAO ()
 
 updateSetting ($userId, $name, $value, $type=null, $assocType=null, $assocId=null)
 
- 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 retrieving and modifying user settings.

See Also
User

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

Member Function Documentation

UserSettingsDAO::deleteSetting (   $userId,
  $name,
  $pressId = null 
)

Delete a user setting.

Parameters
$userIdint
$namestring
$pressIdint

Definition at line 78 of file UserSettingsDAO.inc.php.

& UserSettingsDAO::getSetting (   $userId,
  $name,
  $pressId = null 
)

Retrieve a user setting value.

Parameters
$userIdint
$name
$pressIdint
Returns
mixed

Definition at line 34 of file UserSettingsDAO.inc.php.

& UserSettingsDAO::getSettingsByPress (   $userId,
  $pressId = null 
)

Retrieve all settings for a user for a press.

Parameters
$userIdint
$pressIdint
Returns
array

Definition at line 56 of file UserSettingsDAO.inc.php.

& UserSettingsDAO::getUsersBySetting (   $name,
  $value,
  $type = null,
  $pressId = null 
)

Retrieve all users by setting name and value.

Parameters
$namestring
$valuemixed
$typestring
$pressIdint
Returns
DAOResultFactory matching Users

Definition at line 46 of file UserSettingsDAO.inc.php.

UserSettingsDAO::updateSetting (   $userId,
  $name,
  $value,
  $type = null,
  $pressId = null 
)

Add/update a user setting.

Parameters
$userIdint
$namestring
$valuemixed
$typestring data type of the setting. If omitted, type will be guessed
$pressIdint

Definition at line 68 of file UserSettingsDAO.inc.php.

UserSettingsDAO::UserSettingsDAO ( )

Constructor

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


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