<?php

 $document_number_a = array(null);
 $hold_reference_object = [];
 $hold_name = null;
 $description = null;
 if (!empty($_GET['sys_hold_reference_id']) && !empty($$class->sys_hold_reference_id)) {
  $sys_hold_reference_id_h = $_GET['sys_hold_reference_id'];
  $reference_table_h = $$class->reference_table;
  $reference_id_h = $$class->reference_id;
  $hold_reference_object = array($$class);
 } else if (!empty($_GET['reference_table']) && (!is_array($_GET['reference_table']))   && !empty($_GET['reference_id']) && (!is_array($_GET['reference_id']))) {
  $hold_reference_object = sys_hold_reference::find_by_referenceTableId($_GET['reference_table'], $_GET['reference_id']);
  $sys_hold_reference_id_h =$hold_reference_object[0]->sys_hold_reference_id;
  $reference_table_h = $hold_reference_object[0]->reference_table;
  $reference_id_h = $hold_reference_object[0]->reference_id;
 } else {
  $sys_hold_reference_id_h = null;
  $reference_table_h = null;
  $reference_id_h = null;
 }

 if (empty($hold_reference_object)) {
  $hold_reference_object = array(new sys_hold_reference);
 }
?>