public function before_save_process($bean, $event, $arguments) { require_once 'include/entryPoint.php'; require_once 'modules/Campaigns/utils.php'; $py = new Spell(); $bean->dep_num_c = join('', $py->getInitial($bean->name, 'utf-8', 'utf-8')); }