function __construct($group_id = "", $region_id = "")
 {
     parent::__construct($group_id, $region_id);
     $this->credentials = new Credentials($this->config['aws_access_key_id'], $this->config['aws_secret_access_key']);
     $region = $this->region()->getRegion();
     $this->AWS = Aws::factory(array('credentials' => $this->credentials, 'region' => $region['id']));
 }
 function __construct($group_id = "", $region_id = "")
 {
     parent::__construct($group_id, $region_id);
     if (!$this->menus['dashboard']['link']) {
         $this->menus['dashboard']['link'] = "/";
         $this->menus['dashboard']['name'] = "Dashboard";
     }
     if (!$this->menus['regions']['link']) {
         $this->menus['regions']['link'] = "/?page=regions";
         $this->menus['regions']['name'] = "Regions";
         $this->menus['regions']['sub'][] = array("link" => "?page=regions", "name" => "View All");
         $this->menus['regions']['sub'][] = array("name" => "-");
         $regions = $this->region()->getAllRegions();
         foreach ($regions as $key => $region) {
             $this->menus['regions']['sub'][] = array("link" => "?page=region&id=" . $key, "name" => $region['name']);
         }
     }
     if (!$this->menus['groups']['link']) {
         $this->menus['groups']['link'] = "/?page=groups";
         $this->menus['groups']['name'] = "Groups";
         $this->menus['groups']['sub'][] = array("link" => "?page=groups", "name" => "View All");
         $this->menus['groups']['sub'][] = array("name" => "-");
         $groups = $this->group()->getAllGroups();
         foreach ($groups as $key => $group) {
             $this->menus['groups']['sub'][] = array("link" => "?page=group&id=" . $key, "name" => $group['name']);
         }
     }
     if (!$this->menus['modules']['link']) {
         $this->menus['modules']['link'] = "/?page=modules";
         $this->menus['modules']['name'] = "Modules";
     }
 }
 function __construct($group_id = "", $region_id = "")
 {
     parent::__construct($group_id, $region_id);
 }