コード例 #1
0
ファイル: basicPluginTest.php プロジェクト: beakid/md
function showOutput()
{
    $testResponse = new xajaxResponse();
    $testResponse->alert("Edit this test and uncomment lines in the showOutput() method to test plugin calling");
    // PHP4 & PHP5
    $testResponse->plugin("testPlugin", "testMethod");
    // PHP5 ONLY - Uncomment to test
    //$testResponse->plugin("testPlugin")->testMethod();
    // PHP5 ONLY - Uncomment to test
    //$testResponse->testPlugin->testMethod();
    $testResponseOutput = htmlspecialchars($testResponse->getOutput());
    $objResponse = new xajaxResponse();
    $objResponse->assign("submittedDiv", "innerHTML", $testResponseOutput);
    $objResponse->plugin('testPlugin', 'testMethod');
    return $objResponse;
}
コード例 #2
0
function setMarker($sMap, $aFormValues)
{
    $nLat = $aFormValues['lat'];
    $nLon = $aFormValues['lon'];
    $sText = $aFormValues['text'];
    $objResponse = new xajaxResponse();
    $objResponse->plugin('clsGoogleMap', 'setMarker', $sMap, $nLat, $nLon, $sText);
    return $objResponse;
}