Term == $term) { $date = date("d.m.Y", strtotime($grade_value_inner->Date)); $date = ($date != '01.01.0001') ? $date : ''; $tableArray[$j]['Date'] = $date; $tableArray[$j]['Mark'] = $grade_value_inner->Mark; $tableArray[$j]['Credits'] = $grade_value_inner->Credits; if (is_string($grade_value_inner->Subject)) { $tableArray[$j]['Subject'] = $grade_value_inner->Subject; } elseif ( is_object($grade_value_inner->Subject) && isset($grade_value_inner->Subject->ReferenceName) ) { $tableArray[$j]['Subject'] = $grade_value_inner->Subject->ReferenceName; } $tableArray[$j]['TotalLoad'] = $grade_value_inner->TotalLoad; $tableArray[$j]['TypeOfTheControl'] = $grade_value_inner->TypeOfTheControl; if (isset($grade_value_inner->Children)) { $tableArray[$j]['Children'] = self::getFormattedRowsForTerm($grade_value_inner->Children, $term); } $j++; } } return $tableArray; } public static function renderTableContent($tableArray, $index_prefix = '') { ?> $row): ?>