Definition at line 6 of file LogParser.php.
◆ __construct()
sspmod_statistics_LogParser::__construct |
( |
|
$datestart, |
|
|
|
$datelength, |
|
|
|
$offset |
|
) |
| |
Constructor.
- Parameters
-
integer | $datestart | At which char is the date starting |
integer | $datelength | How many characters is the date (on the b |
integer | $offset | At which char is the rest of the entries starting |
Definition at line 30 of file LogParser.php.
References $datelength, $datestart, and $offset.
◆ parseContent()
sspmod_statistics_LogParser::parseContent |
( |
|
$line | ) |
|
◆ parseEpoch()
sspmod_statistics_LogParser::parseEpoch |
( |
|
$line | ) |
|
- Parameters
-
- Returns
- integer
Definition at line 43 of file LogParser.php.
45 $epoch = strtotime(substr($line, 0, $this->datelength));
46 if ($epoch > time() + 2678400) {
52 $hour = gmdate(
'H', $epoch);
53 $minute = gmdate(
'i', $epoch);
54 $second = gmdate(
's', $epoch);
55 $month = gmdate(
'n', $epoch);
56 $day = gmdate(
'j', $epoch);
57 $year = gmdate(
'Y', $epoch) - 1;
58 $epoch = gmmktime($hour, $minute, $second, $month, $day, $year);
◆ $datelength
sspmod_statistics_LogParser::$datelength |
|
private |
◆ $datestart
sspmod_statistics_LogParser::$datestart |
|
private |
◆ $offset
sspmod_statistics_LogParser::$offset |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/simplesamlphp/simplesamlphp/modules/statistics/lib/LogParser.php