Files
citrus-cms/app/Functions/log-test-types.php
T
2026-04-28 21:14:25 +03:00

35 lines
993 B
PHP

<?php function log_test_types() {
return [
'ht' => 'hardness_tests',
'rt' => 'radiographic_tests',
'ut' => 'ultrasonic_tests',
'mt' => 'magnetic_tests',
'pmi' => 'p_m_i_tests',
'vt' => 'v_t_logs',
'pt' => 'p_t_logs',
'ferrite' => 'ferrits',
'pwht' => 'p_w_h_t_s',
];
}
function get_key_by_value($value) {
$array = log_test_types();
$key = array_search($value, $array);
return $key !== false ? $key : null; // Eğer değer bulunamazsa null döner
}
function log_paths() {
$mainPath = "004_QA/";
return [
'ht' => $mainPath . '0008_HT',
'rt' => $mainPath . '0001_RT',
'ut' => $mainPath . '0002_UT',
'mt' => $mainPath . '0003_MT',
'pmi' => $mainPath . '0005_PMI',
'vt' => $mainPath . '0000_VT',
'pt' => $mainPath . '0004_PT',
'ferrite' => $mainPath . '0006_Ferrite',
'pwht' => $mainPath . '0007_PWHT',
];
}
?>