ProfilesAdminPage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 22 1
1
<?php
2
require_once('../Autoload.php');
3
class ProfilesAdminPage extends \Flipside\Http\FlipAdminPage
4
{
5
    public function __construct($title)
6
    {
7
        parent::__construct($title, 'LDAPAdmins');
8
        $this->addJS('js/admin.js');
9
10
        $users_menu = array(
11
            'Current' => 'users_current.php',
12
            'Pending' => 'users_pending.php'
13
        );
14
        $pos_menu = array(
15
            'Areas' => 'areas.php',
16
            'Leads' => 'leads.php'
17
        );
18
19
        $this->content['loginUrl'] = '../api/v1/login';
20
        $this->content['header']['sidebar'] = array();
21
        $this->content['header']['sidebar']['Dashboard'] = array('icon' => 'fa-tachometer-alt', 'url' => 'index.php');
22
        $this->content['header']['sidebar']['Users'] = array('icon' => 'fa-user', 'menu' => $users_menu);
23
        $this->content['header']['sidebar']['Groups'] = array('icon' => 'fa-users', 'url' => 'groups.php');
24
        $this->content['header']['sidebar']['Positions'] = array('icon' => 'fa-briefcase', 'menu' => $pos_menu);
25
        $this->content['header']['sidebar']['Sessions'] = array('icon' => 'fa-cloud', 'url' => 'sessions.php');
26
    }
27
}
28
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
29