/**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     MatterTaskFile::setDataOperationBusiness($instanceDataBase);
     MatterTaskFile::getBusiness();
     MatterTaskFile::getDescriptionBusiness();
 }
     Forms::setMessage('ERROR', 'Transaccion erronea!!', 'No se pudo realizar la transaccion, error en la carga del Archivo!');
 } else {
     if (file_exists("/upload/task/" . $filename)) {
         unlink("upload/task/" . $filename);
     }
     move_uploaded_file($_FILES["archivo"]["tmp_name"], "upload/task/" . $filename);
     $archivo = new File($registry[$nameDataBase]);
     if ($_POST['proceso_editar'] == 'true' && isset($_POST['pk_id_file']) && $_POST['pk_id_file'] != '') {
         $data_file = array($_POST['title_file'], $_POST['description_file_contents'], $filename, $file_type, $file_ext, 75, $_POST['pk_id_file']);
         $id_file = $archivo->updateFile($data_file, $idTransaction);
     } else {
         $data_file = array($_POST['title_file'], $_POST['description_file_contents'], $filename, $file_type, $file_ext, 75);
         $id_file = $archivo->insertFile($data_file, $idTransaction);
     }
     if ($res > 0 && $id_file > 0) {
         $matter_file = new MatterTaskFile($registry[$nameDataBase]);
         if ($_POST['proceso_editar'] == 'true' && isset($_POST['pk_id_matter_task_file']) && $_POST['pk_id_matter_task_file'] != '') {
             $data_tfile = array($_POST['description_file_contents'], $res, $id_file, $_POST['pk_id_matter_task_file']);
             $id_tfile = $matter_file->updateMatterTaskFile($data_tfile, $idTransaction);
         } else {
             $data_tfile = array($_POST['description_file_contents'], $res, $id_file);
             $id_tfile = $matter_file->insertMatterTaskFile($data_tfile, $idTransaction);
         }
         if ($id_tfile > 0) {
             Forms::setMessage('SUCCESS', 'Transaccion exitosa!!', 'La Tarea se actualizo exitosamente!');
         } else {
             Forms::setMessage('ERROR', 'Transaccion erronea!!', 'Los datos de la Tarea no se pudieron actualizar!');
         }
     } else {
         Forms::setMessage('ERROR', 'Transaccion erronea!!', 'No se pudo realizar la transaccion!');
     }