FileLog::getDate()
Get log lines that lie within a date range
Usage
// basic usage
$array = $fileLog->getDate(int $dateFrom);
// usage with all arguments
$array = $fileLog->getDate(int $dateFrom, int $dateTo = 0, int $pageNum = 1, int $limit = 100);
Arguments
Name | Type(s) | Description |
---|---|---|
$dateFrom | int | Starting date (unix timestamp or strtotime compatible string) |
$dateTo (optional) | int | Ending date (unix timestamp or strtotime compatible string) |
$pageNum (optional) | int | Current pagination number Default:1 |
$limit (optional) | int | Items per pagination Default:100 or specify 0 for no limit. |
Return value
array
FileLog methods and properties
API reference based on ProcessWire core version 3.0.251