Automattic\WooCommerce\Internal\PushNotifications\DataStores
StepLogFileReader::get_filenames
The filenames that could hold one day's lines for a source: the current file and every rotation of it.
Метод класса: StepLogFileReader{}
Хуков нет.
Возвращает
string[].
Использование
$result = StepLogFileReader::get_filenames( $source, $day ): array;
- $source(строка) (обязательный)
- The log source.
- $day(int) (обязательный)
- A timestamp within the UTC day.
Код StepLogFileReader::get_filenames() StepLogFileReader::get filenames WC 11.3.0
private static function get_filenames( string $source, int $day ): array {
$filenames = array();
for ( $rotation = self::MAX_ROTATIONS - 1; $rotation >= 0; $rotation-- ) {
$filenames[] = self::build_filename( $source, $rotation, $day );
}
$filenames[] = self::build_filename( $source, null, $day );
return $filenames;
}