/** * Generate JSON in NON-CLUSTER mode */ function index() { /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //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_index($this, "admin/simplegroups/reports/edit/", true, $group_where, $joins, $sg_category_to_table_mapping); }
/** * Generate JSON in NON-CLUSTER mode */ function index($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_index($this, "reports/view/" . $group_id, true, $group_where, $joins, $sg_category_to_table_mapping); }
/** * Generate JSON in NON-CLUSTER mode */ function index() { adminmap_helper::json_index($this, "reports/view/", false); }
/** * Generate JSON in NON-CLUSTER mode */ function index() { adminmap_helper::json_index($this, "reports/view/", false, "", array(), array(), "_blank"); }
/** * Generate JSON in NON-CLUSTER mode */ function index() { adminmap_helper::json_index($this); }