<?php

 $line_values = null;
 if (!empty($_GET['profile_level'])) {
  $profile_level = $$class->profile_level = $_GET['profile_level'];
 } else {
  $profile_level = $$class->profile_level = 'SITE';
 }
 $org = new org();
 if (empty($$class->sys_profile_header_id)) {
  return;
 }

 if (!empty($$class->profile_class_name)) {
  $obj_class_name = $$class->profile_class_name;
  $profile_method = 'profile_' . $$class->profile_name;
  if (method_exists($$class->profile_class_name, $profile_method)) {
   $line_values_array = call_user_func(array($$class->profile_class_name, $profile_method));
   $line_values = $line_values_array['line_values'];
   $line_key = $line_values_array['line_key'];
   $line_desc = $line_values_array['line_desc'];
  } else {
   $line_values = null;
  }
 } else {
  $line_values = null;
 }

 if (!empty($profile_level) && !empty($$class->sys_profile_header_id)) {
  $sys_profile_line_object = [];
  $lines = $$class_second->findBy_headerId_profileLevel($$class->sys_profile_header_id, $profile_level);
  if (!empty($lines)) {
   $sys_profile_line_object = $lines;
  } else {
   $sys_pl = new sys_profile_line();
   array_push($sys_profile_line_object, $sys_pl);
  }
 }
?>
