'added DESC']; protected $_hasFilter = true; protected function _getDefaultLinks() { $links = []; switch ($this->_action) { case 'list' : $links['clear'] = [ 'attribs' => ['onclick' => "return confirm('Do you really wand to clear log?');"], 'url' => $this->url(array_merge(['action' => 'clear'], $this->getFilter())), ]; break; case 'viewBacktrace': $links['back'] = 'Back to list'; } return $links; } protected function _init() { $this->_doc->addStylesheet('css/modules/admin-log.css'); } protected function _doViewBacktrace() { $item = $this->_getDataObj()->getData(); $item['links'] = $this->_getLinks(); $item['backtrace'] = unserialize(gzuncompress($item['backtrace'])); $item['tpl'] = $this->getTemplate('view-backtrace.tpl'); $this->_addItem($item); return $this; } protected function _doClear() { $this->_getDataObj()->clear($this->getFilter()); $this->_doBack(); } }