00001 <?php
00002
00016
00017
00018
00020 define('ROLE_ID_SITE_ADMIN', 0x00000001);
00021 define('ROLE_ID_JOURNAL_MANAGER', 0x00000010);
00022 define('ROLE_ID_EDITOR', 0x00000100);
00023 define('ROLE_ID_SECTION_EDITOR', 0x00000200);
00024 define('ROLE_ID_LAYOUT_EDITOR', 0x00000300);
00025 define('ROLE_ID_REVIEWER', 0x00001000);
00026 define('ROLE_ID_COPYEDITOR', 0x00002000);
00027 define('ROLE_ID_PROOFREADER', 0x00003000);
00028 define('ROLE_ID_AUTHOR', 0x00010000);
00029 define('ROLE_ID_READER', 0x00100000);
00030 define('ROLE_ID_SUBSCRIPTION_MANAGER', 0x00200000);
00031
00032 class Role extends DataObject {
00033
00037 function Role() {
00038 parent::DataObject();
00039 }
00040
00045 function getRoleName() {
00046 return RoleDAO::getRoleName($this->getData('roleId'));
00047 }
00048
00053 function getRolePath() {
00054 return RoleDAO::getRolePath($this->getData('roleId'));
00055 }
00056
00057
00058
00059
00060
00065 function getJournalId() {
00066 return $this->getData('journalId');
00067 }
00068
00073 function setJournalId($journalId) {
00074 return $this->setData('journalId', $journalId);
00075 }
00076
00081 function getUserId() {
00082 return $this->getData('userId');
00083 }
00084
00089 function setUserId($userId) {
00090 return $this->setData('userId', $userId);
00091 }
00092
00097 function getRoleId() {
00098 return $this->getData('roleId');
00099 }
00100
00105 function setRoleId($roleId) {
00106 return $this->setData('roleId', $roleId);
00107 }
00108 }
00109
00110 ?>