| @@ 204-216 (lines=13) @@ | ||
| 201 | * @param int $accession accession |
|
| 202 | * @return string |
|
| 203 | */ |
|
| 204 | public function accessionToRoles($accession) |
|
| 205 | { |
|
| 206 | switch ($accession) { |
|
| 207 | case (0): |
|
| 208 | return __('user.type.anon'); |
|
| 209 | case (1): |
|
| 210 | return __('user.type.user'); |
|
| 211 | case (2): |
|
| 212 | return __('user.type.mod'); |
|
| 213 | case (3): |
|
| 214 | return __('user.type.admin'); |
|
| 215 | } |
|
| 216 | } |
|
| 217 | } |
|
| 218 | ||
| @@ 84-95 (lines=12) @@ | ||
| 81 | * @param string $type type |
|
| 82 | * @return mixed |
|
| 83 | */ |
|
| 84 | public function type($type) |
|
| 85 | { |
|
| 86 | // write out all __() strings for l10n |
|
| 87 | switch ($type) { |
|
| 88 | case 'user': |
|
| 89 | return __('user.type.user'); |
|
| 90 | case 'mod': |
|
| 91 | return __('user.type.mod'); |
|
| 92 | case 'admin': |
|
| 93 | return __('user.type.admin'); |
|
| 94 | } |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * Creates link to user's external (non-Saito) homepage |
|