| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | function add_links() |
||
| 14 | { |
||
| 15 | $users_menu = array( |
||
| 16 | 'Current' => 'users_current.php', |
||
| 17 | 'Pending' => 'users_pending.php' |
||
| 18 | ); |
||
| 19 | $pos_menu = array( |
||
| 20 | 'Areas' => 'areas.php', |
||
| 21 | 'Leads' => 'leads.php' |
||
| 22 | ); |
||
| 23 | $this->addLink('<span class="glyphicon glyphicon-dashboard"></span> Dashboard', 'index.php'); |
||
| 24 | $this->addLink('<span class="glyphicon glyphicon-user"></span> Users', '#', $users_menu); |
||
| 25 | $this->addLink('<span class="glyphicon glyphicon-tower"></span> Groups', 'groups.php'); |
||
| 26 | $this->addLink('<span class="glyphicon glyphicon-briefcase"></span> Positions', '#', $pos_menu); |
||
| 27 | $this->addLink('<span class="glyphicon glyphicon-cloud"></span> Sessions', 'sessions.php'); |
||
| 28 | } |
||
| 29 | |||
| 51 |
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.