/**
  * save object
  * @access	public
  */
 public function saveObject()
 {
     $this->initSettingsForm('create');
     if ($this->form_gui->checkInput()) {
         $_POST['Fobject']['title'] = $this->form_gui->getInput('title');
         $_POST['Fobject']['desc'] = $this->form_gui->getInput('desc');
         $_POST['Fobject']['activated'] = $this->form_gui->getInput('activated');
         $_POST['Fobject']['akclassvalue1'] = $this->form_gui->getInput('akclassvalue1');
         $_POST['Fobject']['akclassvalue2'] = $this->form_gui->getInput('akclassvalue2');
         // when creating new ilinc course we first create it on ilinc server
         include_once 'Modules/ILinc/classes/class.ilnetucateXMLAPI.php';
         $ilinc = new ilnetucateXMLAPI();
         $ilinc->addCourse($_POST['Fobject']);
         $this->iLincAddCourseResponse = $ilinc->sendRequest();
         if ($this->iLincAddCourseResponse->isError()) {
             $this->ilErr->raiseError($this->iLincAddCourseResponse->getErrorMsg(), $this->ilErr->MESSAGE);
         }
         // if everything ok
         parent::saveObject();
     } else {
         $this->form_gui->setValuesByPost();
         return $this->tpl->setVariable('ADM_CONTENT', $this->form_gui->getHtml());
     }
 }