Beispiel #1
0
 public function cluster()
 {
     ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     //figure out the category ID situation
     $category_ids = array();
     if (isset($_GET['c']) and !empty($_GET['c'])) {
         $category_ids = explode(",", $_GET['c'], -1);
         //get rid of that trailing ";"
     } else {
         $category_ids = array("0");
     }
     ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     //setup the group specific stuff
     $group_where = " AND ( " . $this->table_prefix . "simplegroups_groups_incident.simplegroups_groups_id = " . $this->group->id . ") ";
     $joins = groups::get_joins_for_groups($category_ids);
     $sg_category_to_table_mapping = groups::get_category_to_table_mapping();
     adminmap_helper::json_cluster($this, "admin/simplegroups/reports/edit/", "admin/simplegroups/reports/index", true, $group_where, $joins, $sg_category_to_table_mapping);
 }
 public function cluster($group_id = false)
 {
     if (!$group_id) {
         echo '{"type": "FeatureCollection", "features"; []}';
         return;
     }
     //make sure they can't see anything private
     $_GET['u'] = "1";
     ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     //figure out the category ID situation
     $category_ids = array();
     if (isset($_GET['c']) and !empty($_GET['c'])) {
         $category_ids = explode(",", $_GET['c'], -1);
         //get rid of that trailing ";"
     } else {
         $category_ids = array("0");
     }
     ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     //setup the group specific stuff
     $group_where = " AND ( " . $this->table_prefix . "simplegroups_groups_incident.simplegroups_groups_id = " . $group_id . ") ";
     $joins = groups::get_joins_for_groups($category_ids);
     $sg_category_to_table_mapping = groups::get_category_to_table_mapping();
     adminmap_helper::json_cluster($this, "reports/view/", "reports?sgid=" . $group_id, false, $group_where, $joins, $sg_category_to_table_mapping);
 }
 public function cluster()
 {
     adminmap_helper::json_cluster($this, "reports/view/", "bigmap_reports/index", false);
 }
 public function cluster()
 {
     adminmap_helper::json_cluster($this, "reports/view/", "reports", false, "", array(), array(), "_blank");
 }
    public function cluster()
    {
        adminmap_helper::json_cluster($this);

    }