/**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     Consultations::setDataOperationBusiness($instanceDataBase);
     Consultations::getBusiness();
     Consultations::getDescriptionBusiness();
 }
<?php

$response = new Response($registry[$nameDataBase]);
$consultation = new Consultations($registry[$nameDataBase]);
if (isset($_POST['ACTION']) && $_POST['ACTION'] == 'INSERT' && $_POST['ENTITY'] == 'REQUEST_RESPONSE') {
    $res = 0;
    $transaction = new Transaction($registry[$nameDataBase]);
    Consultations::setDataOperationBusiness($registry[$nameDataBase]);
    $idTransaction = $transaction->insertTransaction(array(Response::$business, Response::$insert, Response::$descriptionBusiness));
    /*
    * 
    * response, datetime_response, 
                                       level, parent_response, fk_id_consultation, fk_id_query_area, 
                                       fk_id_educational_role, resp_fk_id_deputy_director, 
                                       resp_fk_id_psychologist, resp_fk_id_headmaster, 
                                       resp_fk_id_board_directors, resp_fk_id_student, 
                                       resp_fk_id_holder, resp_fk_id_teacher, state_satisfaction
    */
    $fk_id_educational_role = $_SESSION["pk_id_educational_role"];
    $resp_fk_id_deputy_director = NULL;
    $resp_fk_id_psychologist = NULL;
    $resp_fk_id_headmaster = NULL;
    $resp_fk_id_board_directors = NULL;
    $resp_fk_id_student = NULL;
    $resp_fk_id_holder = NULL;
    $resp_fk_id_teacher = NULL;
    if ($_SESSION["pk_id_role"] == User::ROLE_ESTUDIANTE) {
        $resp_fk_id_student = $_SESSION["pk_id_student"];
    }
    if ($_SESSION["pk_id_role"] == User::ROLE_PROFESOR) {
        $resp_fk_id_teacher = $_SESSION["pk_id_teacher"];