function mailQueueAction() { require_once dirname(__FILE__) . '/AdminLogsController.php'; $c = new AdminLogsController($this->getRequest(), $this->getResponse(), $this->getInvokeArgs()); $grid = $c->createMailQueue(); $user = $this->getDi()->userTable->load($this->getParam('user_id')); $grid->getDataSource()->addWhere('t.recipients LIKE ?', $user->email); $grid->runWithLayout('admin/user-layout.phtml'); }
function accessLogAction() { require_once dirname(__FILE__) . '/AdminLogsController.php'; $c = new AdminLogsController($this->getRequest(), $this->getResponse(), $this->getInvokeArgs()); $grid = $c->createAccess(); $grid->removeField('member_login'); $grid->getDataSource()->addWhere('t.user_id=?d', (int) $this->getParam('user_id')); $grid->runWithLayout('admin/user-layout.phtml'); }