PHP Extension
PHP Extension
Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$success = false;
$crypt2 = new CkCrypt2();
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
// jsonObj is a CkJsonObject
$jsonObj = $crypt2->LastJsonData();
if ($crypt2->get_LastMethodSuccess() == false) {
print $crypt2->lastErrorText() . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject object which is passed
// in the last argument and filled upon success.
$jsonOut = new CkJsonObject();
$crypt2->GetLastJsonData($jsonOut);
if ($success == false) {
print $crypt2->lastErrorText() . "\n";
exit;
}
?>