SuiteCRM-Core/modules/jjwg_Areas/controller.php
Dillon-Brown 8e4cc94994 Squashed 'public/legacy/' content from commit 817a12dc0
git-subtree-dir: public/legacy
git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
2021-03-31 15:37:32 +01:00

34 lines
939 B
PHP
Executable file

<?php
// modules/jjwg_Areas/controller.php
include_once('include/utils.php');
class jjwg_AreasController extends SugarController
{
public function action_area_edit_map()
{
$this->view = 'area_edit_map';
$jjwg_Areas = get_module_info('jjwg_Areas');
// Get the map object
if (is_guid($_REQUEST['id'])) {
$jjwg_Areas->retrieve($_REQUEST['id']);
}
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
}
public function action_area_detail_map()
{
$this->view = 'area_detail_map';
$jjwg_Areas = get_module_info('jjwg_Areas');
// Get the map object
if (is_guid($_REQUEST['id'])) {
$jjwg_Areas->retrieve($_REQUEST['id']);
}
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
}
}