(PHP Extension) Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. 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 GetUidls method is deprecated:
// sa is a CkStringArray
$sa = $mailman->GetUidls();
if ($mailman->get_LastMethodSuccess() == false) {
print $mailman->lastErrorText() . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
$st = new CkStringTable();
$success = $mailman->FetchUidls($st);
if ($success == false) {
print $mailman->lastErrorText() . "\n";
exit;
}
?>
|