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

Public Member Functions

 getPressUsersRoleCount ($pressId, $roleId)
 
 getRoleIdFromPath ($rolePath)
 
 newDataObject ()
 
 RoleDAO ()
 
- Public Member Functions inherited from PKPRoleDAO
 getByUserId ($userId, $contextId=null)
 
 getByUserIdGroupedByContext ($userId)
 
 getRoleIdFromPath ($rolePath)
 
 getSortMapping ($heading)
 
 getUsersByRoleId ($roleId=null, $contextId=null, $searchType=null, $search=null, $searchMatch=null, $dbResultRange=null)
 
 newDataObject ()
 
 PKPRoleDAO ()
 
 userHasRole ($contextId, $userId, $roleId)
 
- 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)
 

Static Public Member Functions

static getRoleNames ($contextOnly=false, $roleIds=null)
 
- Static Public Member Functions inherited from PKPRoleDAO
static getRoleNames ($contextOnly=false)
 
- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 

Additional Inherited Members

- Public Attributes inherited from PKPRoleDAO
 $userDao
 
- Public Attributes inherited from DAO
 $_dataSource
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Detailed Description

Operations for retrieving and modifying Role objects.

See Also
Role

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

Member Function Documentation

RoleDAO::getPressUsersRoleCount (   $pressId,
  $roleId 
)

Retrieve the number of users with a given role associated with the specified press.

Parameters
$pressIdint
$roleIdint
Returns
int

Definition at line 44 of file RoleDAO.inc.php.

References DAORegistry\getDAO().

RoleDAO::getRoleIdFromPath (   $rolePath)

Get a role's ID based on its path.

Parameters
$rolePathstring
Returns
int

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

static RoleDAO::getRoleNames (   $contextOnly = false,
  $roleIds = null 
)
static

Get a mapping of role keys and i18n key names.

Parameters
boolean$contextOnlyIf false, also returns site-level roles (Site admin)
array$roleIdsOnly return role names of these IDs
Returns
array

Definition at line 69 of file RoleDAO.inc.php.

RoleDAO::newDataObject ( )

Create new data object.

Returns
Role

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

RoleDAO::RoleDAO ( )

Constructor.

Definition at line 26 of file RoleDAO.inc.php.


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