ฟังก์ชั่น xmlrpc_parse_method_descriptions()

 

ความหมายของฟังก์ชั่นและการใช้งาน

การถอดรหัส XML ลงใน description ด้วยฟังก์ชั่น xmlrpc_parse_method_descriptions()

 

รูปแบบการเขียน (Syntax)

array xmlrpc_parse_method_descriptions ( string $xml )

 

ตัวอย่างที่ 1

<?php

function methodDescription(&$body)
{
    $data = $body->getValue();
    //Get the method that is being called
    $description = xmlrpc_parse_method_descriptions($data);
    $target = $description['methodName'];
    $baseClassPath = $GLOBALS['amfphp']['classPath'];
    $lpos = strrpos($target, '.');
    $methodname = substr($target, $lpos + 1);
    $trunced = substr($target, 0, $lpos);
    $lpos = strrpos($trunced, ".");
    if ($lpos === false) {
        $classname = $trunced;
        $uriclasspath = $trunced . ".php";
        $classpath = $baseClassPath . $trunced . ".php";
    } else {
        $classname = substr($trunced, $lpos + 1);
        $classpath = $baseClassPath . str_replace(".", "/", $trunced) . ".php";
        // removed to strip the basecp out of the equation here
        $uriclasspath = str_replace(".", "/", $trunced) . ".php";
        // removed to strip the basecp out of the equation here
    }
    $body->methodName = $methodname;
    $body->className = $classname;
    $body->classPath = $classpath;
    $body->uriClassPath = $uriclasspath;
    $body->packageClassMethodName = $description['methodName'];
}

?>

 

 

<< PHP Functions 

กระทู้ล่าสุดจากเว็บบอร์ด
หัวข้อกระทู้
ตอบ
เปิดดู
ล่าสุด
เทคนิคการเขียน Test Case ให้ครอบคลุม
โดย athirach.offcial ส 30 มี.ค. 2024 12:50 pm บอร์ด Software testing
0
135
ส 30 มี.ค. 2024 12:50 pm โดย athirach.offcial View Topic เทคนิคการเขียน Test Case ให้ครอบคลุม
Automated test เหมาะสำหรับงานเทสแบบไหน
โดย athirach.offcial ส 30 มี.ค. 2024 12:46 pm บอร์ด Software testing
0
141
ส 30 มี.ค. 2024 12:46 pm โดย athirach.offcial View Topic Automated test เหมาะสำหรับงานเทสแบบไหน
การตรวจสอบภาคจ่ายไฟให้กับ HDD และการระบุปัญหา คอมใช้สัดพักแล้วดับ เครื่อง รีสตาร์ทเอง
โดย mindphp ส 30 มี.ค. 2024 12:43 pm บอร์ด Microsoft Office Knowledge & line & Etc
1
157
ส 30 มี.ค. 2024 12:51 pm โดย mindphp View Topic การตรวจสอบภาคจ่ายไฟให้กับ HDD และการระบุปัญหา คอมใช้สัดพักแล้วดับ เครื่อง รีสตาร์ทเอง
การใช้ Selenium เพื่อเช็คความเร็วของหน้าเว็บ
โดย athirach.offcial ส 30 มี.ค. 2024 12:39 pm บอร์ด Software testing
0
157
ส 30 มี.ค. 2024 12:39 pm โดย athirach.offcial View Topic การใช้ Selenium เพื่อเช็คความเร็วของหน้าเว็บ
การใช้ Python เขียนโปรแกรม GUI เพื่อใช้รัน Selenium
โดย athirach.offcial ส 30 มี.ค. 2024 12:35 pm บอร์ด Software testing
0
157
ส 30 มี.ค. 2024 12:35 pm โดย athirach.offcial View Topic การใช้ Python เขียนโปรแกรม GUI เพื่อใช้รัน Selenium
การใช้งาน Selenium ข้อดีและข้อเสีย
โดย athirach.offcial ส 30 มี.ค. 2024 12:32 pm บอร์ด Software testing
0
124
ส 30 มี.ค. 2024 12:32 pm โดย athirach.offcial View Topic การใช้งาน Selenium ข้อดีและข้อเสีย
แนะนำเวอร์ชัน Python ในปัจจุบัน Python 3.10 หรือ Python 3.11
โดย athirach.offcial ศ 29 มี.ค. 2024 3:20 pm บอร์ด Python Knowledge
0
664
ศ 29 มี.ค. 2024 3:20 pm โดย athirach.offcial View Topic แนะนำเวอร์ชัน Python ในปัจจุบัน Python 3.10 หรือ Python 3.11
การทำงานกับ Selenium ร่วมกับคำสั่ง if-else
โดย athirach.offcial ศ 29 มี.ค. 2024 3:12 pm บอร์ด Software testing
0
163
ศ 29 มี.ค. 2024 3:12 pm โดย athirach.offcial View Topic การทำงานกับ Selenium ร่วมกับคำสั่ง if-else