Documentation

DeleteByTime

Description and parameters

bool
CSaleAuxiliary::DeleteByTime(
 int periodLength,
 sring periodType
);

Method deletes all information on temporary access older than specified time. Non-static method.

Call parameters

ParameterDescription
periodLength Period length during which user has access to a resource.
periodType Type of time period during which user has access to a resource. Permissible values:
  • I - minute;
  • H - hour;
  • D - day;
  • W - week;
  • M - month;
  • Q - quarter;
  • S - semester;
  • Y - year.

Returned values

Returns true on success and false otherwise.

Examples

<?
// Delete all records older than 2 days
CSaleAuxiliary::DeleteByTime(2, "D");
?>

© «Bitrix24», 2001-2024
Up