Beispiel #1
0
 /**
  * Update the value for jed
  * 1 = don't remind me again
  * 2 = remind me in a week
  *
  * @throws Exception
  *
  * @return void
  */
 public function update()
 {
     $config = JComponentHelper::getParams($this->component);
     $jed = JFactory::getApplication()->input->getInt('jed', 1);
     // The user wants a reminder
     if ($jed === 2) {
         $jed = JFactory::getDate()->toSql();
     }
     $config->set('jed', $jed);
     // Store the updated config
     CompojoomComponentHelper::updateConfiguration($this->component, $config);
     $this->setRedirect('index.php?option=' . $this->component);
 }