mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-21 23:47:57 +00:00
37 lines
838 B
PHP
37 lines
838 B
PHP
<?php
|
|
|
|
// custom/modules/Contacts/ContactsJjwg_MapsLogicHook.php
|
|
|
|
if (!defined('sugarEntry') || !sugarEntry) {
|
|
die('Not A Valid Entry Point');
|
|
}
|
|
|
|
#[\AllowDynamicProperties]
|
|
class ContactsJjwg_MapsLogicHook
|
|
{
|
|
public $jjwg_Maps;
|
|
public function __construct()
|
|
{
|
|
$this->jjwg_Maps = get_module_info('jjwg_Maps');
|
|
}
|
|
|
|
|
|
|
|
|
|
public function updateGeocodeInfo(&$bean, $event, $arguments)
|
|
{
|
|
// before_save
|
|
if ($this->jjwg_Maps->settings['logic_hooks_enabled']) {
|
|
$this->jjwg_Maps->updateGeocodeInfo($bean);
|
|
}
|
|
}
|
|
|
|
public function updateRelatedMeetingsGeocodeInfo(&$bean, $event, $arguments)
|
|
{
|
|
// after_save
|
|
if ($this->jjwg_Maps->settings['logic_hooks_enabled']) {
|
|
$this->jjwg_Maps->updateRelatedMeetingsGeocodeInfo($bean);
|
|
}
|
|
}
|
|
}
|