Пример #1
0
 /**
  * This is construct base of the class.
  *
  * A public constructor; initializes the variable $instanceDataBase.
  *
  */
 public function __construct($instanceDataBase)
 {
     parent::__construct($instanceDataBase);
     Kinship::setDataOperationBusiness($instanceDataBase);
     Kinship::getBusiness();
     Kinship::getDescriptionBusiness();
 }
}
$action = 'INSERT';
if (isset($_GET['ACTION']) && $_GET['ACTION'] == 'EDIT') {
    $action = 'EDIT';
}
/*
$direction = new TypeDirection($db);
$catalogo1 = $direction->getListTypeDirection()  ;
*/
$person = new Person($db);
$catalogo1 = $person->getListPerson();
/*
$city = new Location($db);
$catalogo2 = $city->getListLocation()  ;
*/
$kinship = new Kinship($db);
$catalogo2 = $kinship->getListKinship();
$status_holder = new SystemCatalog($db);
$catalogo3 = $status_holder->getListSystemCatalog('STATUS_HOLDER');
$holder = new SystemCatalog($db);
$catalogo4 = $status_holder->getListSystemCatalog('CURRENT_PERIOD');
//AGREGAR PARA EL HOLDER  UN SI/NO
/*
$pk_id_person_direction = 0;
$pk_id_direction = 0;
$pk_id_type_direction = 0;
$fk_id_location = 0;
$direction = '';
*/
$pk_id_student = 0;
$pk_id_kinship = 0;