(PHP ActiveX) Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr. Note: This example requires Chilkat v11.0.0 or greater.
<?php
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.ZipEntry')
$entry = new COM("Chilkat.ZipEntry");
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
// dtObj is a Chilkat.CkDateTime
$dtObj = $entry->GetDt();
if ($entry->LastMethodSuccess == 0) {
print $entry->LastErrorText . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FileDateTimeStr.
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.CkDateTime')
$dt = new COM("Chilkat.CkDateTime");
$dt->SetFromRfc822($entry->FileDateTimeStr);
?>
|