(PHP Extension) Transition from MailMan.LastJsonData to MailMan.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData. Note: This example requires Chilkat v11.0.0 or greater.
<?php
include("chilkat.php");
// Use "chilkat_9_5_0.php" for versions of Chilkat < 10.0.0
$mailman = new CkMailMan();
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
// jsonObj is a CkJsonObject
$jsonObj = $mailman->LastJsonData();
if ($mailman->get_LastMethodSuccess() == false) {
print $mailman->lastErrorText() . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject object which is passed
// in the last argument.
$jsonOut = new CkJsonObject();
$mailman->GetLastJsonData($jsonOut);
?>
|