_addMessageTemplate( self::MSG_NOT_ALLOWED_DELETE, 'You cannot delete this Category because it has resources tied to it' ); return $this; } protected function _bindListColumns($list) { $list->addColumn('no', 'no', array('orderBy' => 'sorter')) ->addColumn('text', 'title', array('orderBy' => 'title')) ->addColumn('options', 'options'); return $this; } protected function _bindFormFields($form) { $form->addElement('text', 'title', array('label' => 'Title', 'required' => true)); return $this; } protected function _getDefaultLinks() { $links = parent::_getDefaultLinks(); $url = Qs_SiteMap::findFirst(null, array('type' => 'SchoolResource_Admin'), null, 'url'); if (false !== $url) { $links[] = array('title' => 'Manage School Resources', 'url' => $url); } return $links; } protected function _doDelete() { if (!$this->dataObj->isAllowDelete()) { $this->_setBackError(self::MSG_NOT_ALLOWED_DELETE); $this->_doBack(); } parent::_doDelete(); } }