database; $item = [ 'list' => $this->_getDataObj()->getList(), 'dbname' => $dbConfig->params->dbname, 'tablePrefix' => $dbConfig->tablePrefix, 'errors' => [ Obj::ERR_NONEXISTENT_FILE_FIELD => 'Non-Existent File Field', Obj::ERR_NONEXISTENT_URL_FIELD => 'Non-Existent URL Field', Obj::ERR_UNDECLARED_FILE_FIELD => 'Undeclared File Field', Obj::ERR_UNDECLARED_URL_FIELD => 'Undeclared URL Field', ], 'tpl' => $this->getTemplate('list.tpl'), ]; $this->_addRefreshItem(); $this->_addItem($item); $this->_doc->addScript('js/app/sanityCheck/parseFields.js'); $this->_doc->addInitObject('app.sanityCheck.ParseFields'); return $this; } protected function _doRefresh() { $this->_getDataObj()->rebuild(); $this->_doBack(); return $this; } protected function _addRefreshItem() { $item = [ 'refreshTime' => $this->_getDataObj()->getRefreshTime(), 'refreshUrl' => $this->url(['action' => 'refresh']), 'tpl' => $this->getTemplate('refreshTime.tpl'), ]; $this->_addItem($item); return $this; } protected function _initPrimaryKey() { return $this; } }