for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
require_once('Autoload.php');
class ProfilesAdminPage extends \Http\FlipAdminPage
{
public function __construct($title)
parent::__construct($title, 'LDAPAdmins');
$this->addJS('js/admin.js');
$users_menu = array(
'Current' => 'users_current.php',
'Pending' => 'users_pending.php'
);
$pos_menu = array(
'Areas' => 'areas.php',
'Leads' => 'leads.php'
$this->content['header']['sidebar'] = array();
content
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
$this->content['header']['sidebar']['Dashboard'] = array('icon' => 'fa-dashboard', 'url' => 'index.php');
$this->content['header']['sidebar']['Users'] = array('icon' => 'fa-user', 'menu' => $users_menu);
$this->content['header']['sidebar']['Groups'] = array('icon' => 'fa-users', 'url' => 'groups.php');
$this->content['header']['sidebar']['Positions'] = array('icon' => 'fa-briefcase', 'menu' => $pos_menu);
$this->content['header']['sidebar']['Sessions'] = array('icon' => 'fa-cloud', 'url' => 'sessions.php');
}
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
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: