public function onObjectDelete(iUmiEventPoint $event) { if ($event->getMode() == 'after') { $objectId = $event->getParam('object_id'); $pool = ConnectionPool::getInstance(); $connection = $pool->getConnection(); umiEventFeed::setConnection($connection); $eventId = umiEventFeed::findEventIdByObjectId($objectId); if ($eventId) { umiEventFeed::deleteEvent($eventId); } } }
public function onObjectDelete(iUmiEventPoint $v4119639092e62c55ea8be348e4d9260d) { if ($v4119639092e62c55ea8be348e4d9260d->getMode() == 'after') { $v16b2b26000987faccb260b9d39df1269 = $v4119639092e62c55ea8be348e4d9260d->getParam('object_id'); $vb10a8c0bede9eb4ea771b04db3149f28 = ConnectionPool::getInstance(); $v4717d53ebfdfea8477f780ec66151dcb = $vb10a8c0bede9eb4ea771b04db3149f28->getConnection(); umiEventFeed::setConnection($v4717d53ebfdfea8477f780ec66151dcb); $v53cc4db543d7a569e51c1d76ac6f278e = umiEventFeed::findEventIdByObjectId($v16b2b26000987faccb260b9d39df1269); if ($v53cc4db543d7a569e51c1d76ac6f278e) { umiEventFeed::deleteEvent($v53cc4db543d7a569e51c1d76ac6f278e); } } }