Deletes all entries of a subtable.
Parameter |
Type |
Description |
|---|---|---|
$subtable |
string |
Name of the subtable |
$deleteAttachedFiles |
bool |
Flag that determines whether all attached files in the subtable should also be physically deleted (optional); default value is false; |
If an error occurs, the function throws a JobRouterException.
Example:
try {
$this->clearSubtable("mySubtableName");
} catch (JobRouterException $e) {
$this->error($e->getMessage());
throw new JobRouterException('An error has occurred. For further details, please refer to the log file.');
}