예제 #1
0
 /**
  * Get the i18n key name associated with this role.
  * @return String the key
  */
 function getRoleName()
 {
     switch ($this->getId()) {
         case ROLE_ID_SUBMITTER:
             return 'user.role.submitter' . ($plural ? 's' : '');
         default:
             return parent::getRoleName($plural);
     }
 }
예제 #2
0
파일: Role.inc.php 프로젝트: artkuo/ocs
 /**
  * Get the i18n key name associated with the specified role.
  * @param $plural boolean get the plural form of the name
  * @return string
  */
 function getRoleName($plural = false)
 {
     switch ($this->getId()) {
         case ROLE_ID_DIRECTOR:
             return 'user.role.director' . ($plural ? 's' : '');
         case ROLE_ID_TRACK_DIRECTOR:
             return 'user.role.trackDirector' . ($plural ? 's' : '');
         default:
             return parent::getRoleName($plural);
     }
 }
예제 #3
0
파일: Role.inc.php 프로젝트: utlib/ojs
 /**
  * Get the i18n key name associated with the specified role.
  * @param $plural boolean get the plural form of the name
  * @return string
  */
 function getRoleName($plural = false)
 {
     switch ($this->getId()) {
         case ROLE_ID_EDITOR:
             return 'user.role.editor' . ($plural ? 's' : '');
         case ROLE_ID_GUEST_EDITOR:
             return 'user.role.guestEditor' . ($plural ? 's' : '');
         case ROLE_ID_SECTION_EDITOR:
             return 'user.role.sectionEditor' . ($plural ? 's' : '');
         case ROLE_ID_SUBSCRIPTION_MANAGER:
             return 'user.role.subscriptionManager' . ($plural ? 's' : '');
         default:
             return parent::getRoleName($plural);
     }
 }