コード例 #1
0
 /**
  * Zeigt Formular für das Editieren einer CollectionRole.
  */
 public function editAction()
 {
     Opus_CollectionRole::fixPositions();
     try {
         $collectionRoleModel = new Admin_Model_CollectionRole($this->getRequest()->getParam('roleid', ''));
         $this->view->form = $this->getRoleForm($collectionRoleModel->getObject());
         $this->setCollectionBreadcrumb('default_collection_role_' . $collectionRoleModel->getObject()->getName());
     } catch (Application_Exception $e) {
         return $this->_redirectToAndExit('index', array('failure' => $e->getMessage()));
     }
 }