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