BurningFlipside /
Profiles
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | require_once('Autoload.php'); |
||
| 3 | class ProfilesAdminPage extends \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['header']['sidebar'] = array(); |
||
|
0 ignored issues
–
show
|
|||
| 20 | $this->content['header']['sidebar']['Dashboard'] = array('icon' => 'fa-dashboard', 'url' => 'index.php'); |
||
| 21 | $this->content['header']['sidebar']['Users'] = array('icon' => 'fa-user', 'menu' => $users_menu); |
||
| 22 | $this->content['header']['sidebar']['Groups'] = array('icon' => 'fa-users', 'url' => 'groups.php'); |
||
| 23 | $this->content['header']['sidebar']['Positions'] = array('icon' => 'fa-briefcase', 'menu' => $pos_menu); |
||
| 24 | $this->content['header']['sidebar']['Sessions'] = array('icon' => 'fa-cloud', 'url' => 'sessions.php'); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
| 28 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: