Bitrix Site Manager

CSaleAuxiliary::DeleteByTime

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

The method DeleteByTime deletes all information about the expired temporary access.

Parameters

ParameterDescription
periodLength The period length, within which the user has the access to the resource.
periodType The type of the period length. Possible values:
  • I - minute;
  • H - hour;
  • D - day;
  • W - week;
  • M - month;
  • Q - quarter;
  • S - half year;
  • Y - year.

Return Values

The method returns true on success, or false otherwise.

Example



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