当前位置: 首页>>代码示例>>PHP>>正文


PHP Family::get_patientlname方法代码示例

本文整理汇总了PHP中Family::get_patientlname方法的典型用法代码示例。如果您正苦于以下问题:PHP Family::get_patientlname方法的具体用法?PHP Family::get_patientlname怎么用?PHP Family::get_patientlname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Family的用法示例。


在下文中一共展示了Family::get_patientlname方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: updateFamilyProfile

function updateFamilyProfile(Family $familyProfile)
{
    error_log("in updateFamilyProfile will do the actual insert to the database");
    $activityType = "Edit";
    //retrieves the sw, and gets id, firstname and lastname
    $currentUser = getUserProfileID();
    $swID = "";
    $swFirstName = "";
    $swLastName = "";
    $rmhStaffProfileId = "";
    $rmhStaffFirstName = "";
    $rmhStaffLastName = "";
    $dateSWSubmit = 'NULL';
    $dateRMHApproved = 'NULL';
    // if the person doing the edit is a social worker, add their name and id to the reservation
    // activity record
    if (getUserAccessLevel() == 1) {
        $rmhStaffProfileId = 'NULL';
        $sw = retrieve_UserProfile_SW($currentUser);
        $swObject = current($sw);
        // there is only one record in the returned array, so get it
        // consider changing this code
        $swID = $swObject->get_swProfileId();
        //   $swFirstName = $swObject->get_swFirstName();
        //   $swLastName=$swObject->get_swLastName();
        $status = "Unconfirmed";
        $dateSWSubmit = date("Y-m-d H:i:s");
    } else {
        if (getUserAccessLevel() == 2) {
            $rmhStaff = retrieve_UserProfile_RMHApprover_OBJ($currentUser);
            $rmhStaffProfileId = $rmhStaff->get_rmhStaffProfileId();
            //    $rmhStaffFirstName = $rmhStaff->get_rmhStaffFirstName();
            //  $rmhStaffLastName = $rmhStaff->get_rmhStaffLastName();
            $status = "Confirmed";
            $dateRMHApproved = date("Y-m-d H:i:s");
        }
    }
    // only if this is an RMH staff approval
    // insert_FamilyProfile($familyProfile);
    error_log('in updateFamilyProfile, familyProfileId is ' . $familyProfile->get_familyProfileId());
    // only insert an activity record - will insert change into FamilyProfile table only if
    // approved
    $currentProfileActivity = new ProfileActivity(0, 0, $familyProfile->get_familyProfileId(), $swID, $rmhStaffProfileId, $dateSWSubmit, $dateRMHApproved, $activityType, $status, $familyProfile->get_parentfname(), $familyProfile->get_parentlname(), $familyProfile->get_parentemail(), $familyProfile->get_parentphone1(), $familyProfile->get_parentphone2(), $familyProfile->get_parentaddress(), $familyProfile->get_parentcity(), $familyProfile->get_parentstate(), $familyProfile->get_parentzip(), $familyProfile->get_parentcountry(), $familyProfile->get_patientfname(), $familyProfile->get_patientlname(), $familyProfile->get_patientrelation(), $familyProfile->get_patientdob(), $familyProfile->get_patientformpdf(), $familyProfile->get_patientnotes(), $familyProfile->get_patientnotes());
    $retval = insert_ProfileActivity($currentProfileActivity);
    return $retval;
}
开发者ID:kumarsivarajan,项目名称:rmh-roomreservation-maker,代码行数:46,代码来源:EditFamilyProfile.php


注:本文中的Family::get_patientlname方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。