Automattic\WooCommerce\Internal\PushNotifications\DataStores
StepLogFileReader::build_filename
Builds a log filename the way the file handler does when writing.
Метод класса: StepLogFileReader{}
Хуков нет.
Возвращает
string.
Использование
$result = StepLogFileReader::build_filename( $source, ?int $rotation, $day ): string;
- $source(строка) (обязательный)
- The log source.
- ?int $rotation(обязательный)
- .
- $day(int) (обязательный)
- A timestamp within the UTC day.
Код StepLogFileReader::build_filename() StepLogFileReader::build filename WC 11.3.0
private static function build_filename( string $source, ?int $rotation, int $day ): string {
$file_id = File::generate_file_id( $source, $rotation, $day );
return $file_id . '-' . File::generate_hash( $file_id ) . '.log';
}