function preDispatch() { ignore_user_abort(true); @set_time_limit(0); @ini_set('memory_limit', '256M'); $this->setActiveMenu('users-email'); if ($this->queue_id = $this->getFiltered('queue_id')) { $this->saved = $this->getDi()->emailSentTable->load($this->queue_id); $this->_request->fromArray($this->saved->unserialize()); } elseif ($id = $this->getInt('resend_id')) { $this->saved = $this->getDi()->emailSentTable->load($id); unset($_GET['resend_id']); $_POST = $this->saved->unserialize(); unset($_POST['_save_']); $this->getRequest()->fromArray($_POST); } $this->_request->set('format', $this->getParam('format', 'html')); $this->searchUi = new Am_Query_Ui(); $this->searchUi->addDefaults(); $this->searchUi->setFromRequest($this->_request); }