_getDataObj()->setAction($this->_action); return parent::_doInsert(); } protected function _getDefaultLinks() { $links = parent::_getDefaultLinks(); array_unshift( $links, array( 'title' => 'Manage ' . \Qs_Application::getConfig('Blog\\Category')->get('itemsName'), 'url' => \Qs_SiteMap::findFirst(null, array('type' => 'Blog\\Category\\Admin\\'), null, 'url') ) ); return $links; } protected function _getNewForm(array $options = array()) { $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); } }