本文整理匯總了PHP中LabConfig::getDoctorConfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP LabConfig::getDoctorConfig方法的具體用法?PHP LabConfig::getDoctorConfig怎麽用?PHP LabConfig::getDoctorConfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類LabConfig
的用法示例。
在下文中一共展示了LabConfig::getDoctorConfig方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_user_by_id
$user = get_user_by_id($_SESSION['user_id']);
if (!(is_country_dir($user) || is_super_admin($user))) {
$saved_db = DbUtil::switchToGlobal();
$query = "SELECT lab_config_id FROM lab_config WHERE admin_user_id = " . $_SESSION['user_id'];
$record = query_associative_one($query);
$labId = $record['lab_config_id'];
if ($labId != $lab_config_id) {
echo "You are not authorized to access the configuration";
include "includes/footer.php";
die;
}
DbUtil::switchRestore($saved_db);
}
//echo "Lab Config Id ".$lab_config_id;
$lab_config = LabConfig::getById($lab_config_id);
$doctor_lab_config = LabConfig::getDoctorConfig($lab_config_id);
//Patient Custom Fields for the lab with $lab_config
$custom_field_list_patients = get_lab_config_patient_custom_fields($lab_config->id);
$custom_field_list_specimen = get_lab_config_specimen_custom_fields($lab_config->id);
$custom_field_list_labTitle = get_lab_config_labtitle_custom_fields($lab_config->id);
//echo "custom fields = ".$custom_field_list[0]->id;
if ($lab_config == null) {
?>
<br><br>
<div class='sidetip_nopos'>
<?php
echo LangUtil::$generalTerms['MSG_NOTFOUND'];
?>
</div>
<?php
include "includes/footer.php";