public function onPageSystemDelete(iUmiEventPoint $event) { if ($event->getMode() == 'before') { if (!$event->getRef('element') instanceof umiHierarchyElement) return; $elementId = $event->getRef('element')->getId(); $pool = ConnectionPool::getInstance(); $connection = $pool->getConnection(); umiEventFeed::setConnection($connection); $eventId = umiEventFeed::findEventIdByElementId($elementId); if ($eventId) umiEventFeed::deleteEvent($eventId); } }
public function onPageSystemDelete(iUmiEventPoint $v4119639092e62c55ea8be348e4d9260d) { if ($v4119639092e62c55ea8be348e4d9260d->getMode() == 'before') { if (!$v4119639092e62c55ea8be348e4d9260d->getRef('element') instanceof umiHierarchyElement) { return; } $v7552cd149af7495ee7d8225974e50f80 = $v4119639092e62c55ea8be348e4d9260d->getRef('element')->getId(); $vb10a8c0bede9eb4ea771b04db3149f28 = ConnectionPool::getInstance(); $v4717d53ebfdfea8477f780ec66151dcb = $vb10a8c0bede9eb4ea771b04db3149f28->getConnection(); umiEventFeed::setConnection($v4717d53ebfdfea8477f780ec66151dcb); $v53cc4db543d7a569e51c1d76ac6f278e = umiEventFeed::findEventIdByElementId($v7552cd149af7495ee7d8225974e50f80); if ($v53cc4db543d7a569e51c1d76ac6f278e) { umiEventFeed::deleteEvent($v53cc4db543d7a569e51c1d76ac6f278e); } } }