_getDataObj()->setAction($this->_action); return parent::_doInsert(); } protected function _getDefaultLinks() { $links = parent::_getDefaultLinks(); $links[] = [ 'title' => 'Manage ' . \Qs_Application::getConfig('Blog\\Category')->get('itemsName'), 'url' => \Qs_SiteMap::findFirst(null, ['type' => 'Blog\\Category\\Admin\\'], null, 'url'), ]; return $links; } protected function _getNewForm(array $options = []) { $defaults = [ 'author' => $this->_doc->getAuthData('firstName') . ' ' . $this->_doc->getAuthData('lastName'), 'enabled' => 'y', 'allowComment' => 'y', ]; $options['defaults'] = array_merge(Qs_Array::get($options, 'defaults', []), $defaults); return parent::_getNewForm($options); } }