file_updater
class file_updater implements file_updater_interface
File updater for direct filesystem access
Properties
protected filesystem | $filesystem | ||
protected string | $phpbb_root_path |
Methods
delete_file(string $path_to_file)
Deletes a file
create_new_file(string $path_to_file_to_create, string $source, bool $create_from_content = false)
Creates a new file
update_file(string $path_to_file_to_update, string $source, bool $create_from_content = false)
Update file
string
get_method_name()
Returns the name of the file updater method
Details
at line 41
__construct(filesystem $filesystem, string $phpbb_root_path)
Constructor
at line 53
delete_file(string $path_to_file)
Deletes a file
at line 64
create_new_file(string $path_to_file_to_create, string $source, bool $create_from_content = false)
Creates a new file
at line 111
update_file(string $path_to_file_to_update, string $source, bool $create_from_content = false)
Update file
at line 198
string
get_method_name()
Returns the name of the file updater method