Esempio n. 1
0
 /**
  * Method to save the form data.
  *
  * @param   array  $data  The form data.
  *
  * @return  boolean  True on success, False on error.
  *
  * @since   11.1
  */
 public function save($data)
 {
     $data = JRequest::get('post');
     $data['introtext'] = $_POST['introtext'];
     $result = new JObject();
     // Execute parent
     if (parent::save($data)) {
         $result->success = true;
         $result->item = $this->getItem();
         $this->checkin($data->id);
     } else {
         $result->success = false;
         $result->item = null;
         $result->errorMsg = $this->getError();
     }
     return $result;
 }