コード例 #1
0
 public function editAction()
 {
     parent::editAction();
     $table = $this->_helper->db;
     $this->view->sequenceTypeOptions = $table->getTable()->getSequenceTypesForSelect();
     $this->view->sequenceElementOptions = $table->getTable()->getElementsForSelect();
     $this->view->corpus = $this->view->ngram_corpu;
     // correct poor inflection
 }
コード例 #2
0
ファイル: ItemsController.php プロジェクト: kyfr59/cg35
 /**
  * Adds an additional permissions check to the built-in edit action.
  * 
  */
 public function editAction()
 {
     // Get all the element sets that apply to the item.
     $this->view->elementSets = $this->_getItemElementSets();
     if (!Zend_Registry::isRegistered('file_derivative_creator') && is_allowed('Settings', 'edit')) {
         $this->_helper->flashMessenger(__('The ImageMagick directory path has not been set. No derivative images will be created. If you would like Omeka to create derivative images, please set the path in Settings.'));
     }
     parent::editAction();
 }
コード例 #3
0
 public function editAction()
 {
     $timeline = $this->_helper->db->findById();
     require_once NEATLINE_TIME_FORMS_DIR . '/timeline.php';
     $form = new NeatlineTime_Form_Timeline();
     $form->setDefaults(array('title' => $timeline->title, 'description' => $timeline->description, 'public' => $timeline->public, 'featured' => $timeline->featured));
     $this->view->form = $form;
     parent::editAction();
 }
コード例 #4
0
ファイル: FilesController.php プロジェクト: kwiliarty/Omeka
 public function editAction()
 {
     $elementSets = $this->_getFileElementSets();
     $this->view->assign(compact('elementSets'));
     parent::editAction();
 }
コード例 #5
0
 /**
  * The edit collection action
  * 
  */
 public function editAction()
 {
     // Get all the element sets that apply to the item.
     $this->view->elementSets = $this->_getCollectionElementSets();
     parent::editAction();
 }