Open Journal Systems  3.3.0
Role.inc.php
1 <?php
2 
18 define('ROLE_ID_MANAGER', 0x00000010);
19 define('ROLE_ID_SITE_ADMIN', 0x00000001);
20 define('ROLE_ID_SUB_EDITOR', 0x00000011);
21 define('ROLE_ID_AUTHOR', 0x00010000);
22 define('ROLE_ID_REVIEWER', 0x00001000);
23 define('ROLE_ID_ASSISTANT', 0x00001001);
24 define('ROLE_ID_READER', 0x00100000);
25 define('ROLE_ID_SUBSCRIPTION_MANAGER', 0x00200000);
26 
27 class Role extends DataObject {
33  function __construct($roleId = null) {
34  parent::__construct();
35  $this->setId($roleId);
36  }
37 
38 
39  //
40  // Get/set methods
41  //
46  function getRoleId() {
47  return $this->getId();
48  }
49 
54  function setRoleId($roleId) {
55  return $this->setId($roleId);
56  }
57 }
Role\setRoleId
setRoleId($roleId)
Definition: Role.inc.php:54
Role\__construct
__construct($roleId=null)
Definition: Role.inc.php:33
DataObject
Any class with an associated DAO should extend this class.
Definition: DataObject.inc.php:18
Role\getRoleId
getRoleId()
Definition: Role.inc.php:46
DataObject\setId
setId($id)
Definition: DataObject.inc.php:214
DataObject\getId
getId()
Definition: DataObject.inc.php:206
Role
Describes generic PKP user roles within the system and the associated permissions.
Definition: Role.inc.php:27