Example #1
0
function getPersonByPersonId($sessionkey, $appcode, $id)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
        $result = BL_managePerson::getPersonListByPersonId($id);
        if ($result->type == 1) {
            $arr_PersonList = $result->data;
            if (count($arr_PersonList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                foreach ($arr_PersonList as $obj_Person) {
                    $main_result .= getPersonXml($obj_Person);
                }
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
function getWebservicecallList($sessionkey, $appcode, $paging)
{
    $main_result = "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey);
    if ($userId > -1) {
        $main_result .= "<AUTHSTATUS>1</AUTHSTATUS>";
        $result = BL_manageWebservicecall::getWebservicecallList();
        if ($result->type == 1) {
            $arr_PersonList = $result->data;
            if (count($arr_WebservicecallList) > 0) {
                $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
                $main_result .= "<WEBSERVICECALLLIST>";
                foreach ($arr_WebservicecallList as $obj_Webservicecall) {
                    $main_result .= getPersonXml($obj_Webservicecall);
                }
                $main_result .= "</WEBSERVICECALLLIST>";
            } else {
                $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
            }
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    return $main_result;
}