Finds history objects by timestamp, and optionally filter on other
fields as well.
public getByTimestamp ( string $cmp, integer $ts, array $filters = [], string $parent = null ) : array | ||
$cmp | string | The comparison operator (<, >, <=, >=, or =) to check the timestamps with. |
$ts | integer | The timestamp to compare against. |
$filters | array | An array of additional (ANDed) criteria. Each array value should be an array with 3 entries: - field: the history field being compared (i.e. 'action'). - op: the operator to compare this field with. - value: the value to check for (i.e. 'add'). |
$parent | string | The parent history to start searching at. If non-empty, will be searched for with a LIKE '$parent:%' clause. |
return | array | An array of history object ids, or an empty array if none matched the criteria. |