예제 #1
0
 /**
  * Get the URL path associated with this role's operations.
  * @return String the path
  */
 function getPath()
 {
     switch ($this->getId()) {
         case ROLE_ID_SUBMITTER:
             return ROLE_PATH_SUBMITTER;
         default:
             return parent::getPath();
     }
 }
예제 #2
0
파일: Role.inc.php 프로젝트: artkuo/ocs
 /**
  * Get the URL path associated with the specified role's operations.
  * @return string
  */
 function getPath()
 {
     switch ($this->getId()) {
         case ROLE_ID_DIRECTOR:
             return ROLE_PATH_DIRECTOR;
         case ROLE_ID_TRACK_DIRECTOR:
             return ROLE_PATH_TRACK_DIRECTOR;
         default:
             return parent::getPath();
     }
 }
예제 #3
0
파일: Role.inc.php 프로젝트: utlib/ojs
 /**
  * Get the URL path associated with the specified role's operations.
  * @return string
  */
 function getPath()
 {
     switch ($this->getId()) {
         case ROLE_ID_EDITOR:
             return 'editor';
         case ROLE_ID_GUEST_EDITOR:
             return 'guestEditor';
         case ROLE_ID_SECTION_EDITOR:
             return 'sectionEditor';
         case ROLE_ID_SUBSCRIPTION_MANAGER:
             return 'subscriptionManager';
         default:
             return parent::getPath();
     }
 }