$Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('eznewsletter/list_newsletterbounce', 'Newsletter items on hold'))); return; } else { if ($http->hasPostVariable('ConfirmRemoveOnHoldEntryButton')) { $onHoldEntryIDArray = $http->sessionVariable('OnHoldIDArray'); $db->begin(); if (count($onHoldEntryIDArray) > 0) { foreach ($onHoldEntryIDArray as $onHoldID) { eZSendNewsletterItem::removeEntry($onHoldID); } } $db->commit(); } } } $sendItemsOnHold = eZSendNewsletterItem::fetchObjectList(eZSendNewsletterItem::definition(), null, array('send_status' => eZSendNewsletterItem::SendStatusOnHold), array('id' => 'asc'), array('offset' => $offset, 'length' => $limit)); $tpl->setVariable('onhold_items', $sendItemsOnHold); $Result = array(); $Result['newsletter_menu'] = 'design:parts/content/bounce_menu.tpl'; $Result['left_menu'] = 'design:parts/content/eznewsletter_menu.tpl'; $Result['content'] = $tpl->fetch("design:{$extension}/list_newsletter_onhold.tpl"); $Result['path'] = array(array('url' => false, 'text' => ezpI18n::tr('eznewsletter/list_newsletterbounce', 'Messages on hold'))); return; break; case 'all': default: $bounceID = $Params['BounceID']; $sendItemBounced = eZSendNewsletterItem::fetch($bounceID); if ($sendItemBounced) { $bounceObject = eZBounce::fetchBySendItemID($bounceID); $tpl->setVariable('bounce_object', $bounceObject);
static function removeEntry($id) { eZPersistentObject::removeObject(eZSendNewsletterItem::definition(), array('id' => $id)); }