public function editAction()
 {
     if ($_POST && isset($_POST['collection_ids'])) {
         $_POST['collection_ids'] = serialize($_POST['collection_ids']);
     }
     return parent::editAction();
 }
Example #2
0
 public function editAction()
 {
     if (isset($_POST['params'])) {
         $_POST['params'] = serialize(trim($_POST['params']));
     }
     parent::editAction();
 }
 public function browseAction()
 {
     $params = $this->_getAllParams();
     if (isset($params['vocab'])) {
         $vocabName = $this->getDb()->getTable('ControlledVocab_Vocab')->find($params['vocab'])->name;
         $this->view->assign(array('vocabName' => $vocabName));
     }
     return parent::browseAction();
 }
 public function deleteAction()
 {
     $feed_id = $this->_getParam('id');
     $record = $this->getTable()->find($feed_id);
     //delete the task
     $task = $this->getDb()->getTable('FakeCron_Task')->find($record->task_id);
     $task->delete();
     //delete the tags configs
     $tagConfigs = $this->getDb()->getTable('FeedImporter_TagConfig')->findBy(array('feed_id' => $feed_id));
     foreach ($tagConfigs as $tagConfig) {
         $tagConfig->delete();
     }
     parent::deleteAction();
 }