function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
{
$m = 'notify'. $notify->evtype;
- var_dump(get_class($object) . '::' .$m);
+ //var_dump(get_class($object) . '::' .$m);
if (!empty($notify->evtype) && method_exists($object,$m)) {
echo "calling :" . get_class($object) . '::' .$m . "\n";
return $object->$m($rcpt, $last_sent_date, $notify, $force);
}
+
+ $type = explode('::', $notify->evtype);
+
+ if(!empty($type[1]) && method_exists($object,$type[1])){
+ $m = $type[1];
+ echo "calling :" . get_class($object) . '::' .$m . "\n";
+ return $object->$m($rcpt, $last_sent_date, $notify, $force);
+ }
if (!method_exists($object, 'toEmail')) {
//var_Dump($object);