| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | function get_secure_menu_entries($page, $user) |
||
|
|
|||
| 5 | { |
||
| 6 | $ret = array( |
||
| 7 | 'Volunteer' => $page->secure_root.'fvs/index.php' |
||
| 8 | ); |
||
| 9 | if($user !== null && $user->isInGroupNamed('VolunteerAdmins')) |
||
| 10 | { |
||
| 11 | $ret['Volunteer System Admin']=$page->secure_root.'fvs/_admin/index.php'; |
||
| 12 | } |
||
| 13 | return $ret; |
||
| 14 | } |
||
| 15 | |||
| 24 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.