/** * Prepare and sanitise the table data prior to saving. * * @param JTable $table A reference to a JTable object. * * @return void */ protected function prepareTable(\JTable $table) { parent::prepareTable($table); $cck = $this->getContainer()->get('cck'); /** @var $cck \Windwalker\CCK\CCKEngine */ $cck->setFieldTable($table); }
/** * Prepare and sanitise the table data prior to saving. * * @param JTable $table A reference to a JTable object. * * @return void */ protected function prepareTable(\JTable $table) { $input = JFactory::getApplication()->input; $jform = $input->post->getRaw('jform'); $jform['list'] = new JRegistry($jform['list']); $table->list = $jform['list'] = $jform['list']->toString(); $jform['blog'] = new JRegistry($jform['blog']); $table->blog = $jform['blog'] = $jform['blog']->toString(); $jform['article'] = new JRegistry($jform['article']); $table->article = $jform['article'] = $jform['article']->toString(); $input->set('jform', $jform); $table->bind($jform); parent::prepareTable($table); }
/** * Prepare and sanitise the table data prior to saving. * * @param JTable $table A reference to a JTable object. * * @return void */ protected function prepareTable(\JTable $table) { parent::prepareTable($table); }