0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-01-30 20:16:21 +00:00
salesagility_SuiteCRM/modules/Contacts/ContactsJjwg_MapsLogicHook.php
Dillon-Brown 4ee7a709a0 Remove PHP4 constructors
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-26 21:50:24 +00:00

35 lines
811 B
PHP

<?php
// custom/modules/Contacts/ContactsJjwg_MapsLogicHook.php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
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);
}
}
}