public function editAction()
 {
     if ($_POST && isset($_POST['collection_ids'])) {
         $_POST['collection_ids'] = serialize($_POST['collection_ids']);
     }
     return parent::editAction();
 }
Esempio n. 2
0
 public function editAction()
 {
     if (isset($_POST['params'])) {
         $_POST['params'] = serialize(trim($_POST['params']));
     }
     parent::editAction();
 }
 public function editAction()
 {
     $vocabs = get_db()->getTable('ControlledVocab_Vocab')->findPairsForSelectForm();
     $this->view->assign(array('vocabs' => $vocabs));
     if ($_POST && isset($_POST['element_ids'])) {
         $_POST['element_ids'] = serialize($_POST['element_ids']);
     }
     return parent::editAction();
 }
Esempio n. 4
0
 public function editAction()
 {
     require_once PLUGIN_DIR . "/FeedImporter/libraries/SimplePie/simplepie.inc";
     $feed = new SimplePie();
     $record = $this->getTable()->find($this->_getParam('id'));
     $feed->set_feed_url($record->feed_url);
     $feed->init();
     $feed->handle_content_type();
     $import = new FeedImporter_Import();
     $import->processFeedTags($feed, $this->_getParam('id'));
     if ($_POST['new_collection']) {
         $_POST['collection_id'] = $this->_createCollectionFromFeed($feed);
     }
     // Edit the FakeCron_Task for the feed if needed
     if ($_POST['update_frequency']) {
         $fc_task = $this->getDB()->getTable('FakeCron_Task')->find($record->task_id);
         $fc_task->interval = $_POST['update_frequency'];
         $fc_task->save();
     }
     parent::editAction();
 }