delete
class delete
Attachment delete class
Properties
protected config | $config | ||
protected driver_interface | $db | ||
protected dispatcher | $dispatcher | ||
protected filesystem | $filesystem | ||
protected resync | $resync | ||
protected string | $phpbb_root_path | ||
protected array | $ids |
Methods
__construct(config $config, driver_interface $db, dispatcher $dispatcher, filesystem $filesystem, resync $resync, string $phpbb_root_path)
Attachment delete class constructor
int|bool
delete(string $mode, mixed $ids, bool $resync = true)
Delete Attachments
bool
set_attachment_ids(mixed $ids)
Set attachment IDs
collect_attachment_info(bool $resync)
Collect info about attachment IDs
delete_attachments_from_db($mode, $ids, $resync)
Delete attachments from database table
remove_from_filesystem($mode, $ids, $resync)
Delete attachments from filesystem
bool
unlink_attachment(string $filename, string $mode = 'file', bool $entry_removed = false)
Delete attachment from filesystem
Details
at line 78
__construct(config $config, driver_interface $db, dispatcher $dispatcher, filesystem $filesystem, resync $resync, string $phpbb_root_path)
Attachment delete class constructor
at line 98
int|bool
delete(string $mode, mixed $ids, bool $resync = true)
Delete Attachments
at line 215
protected bool
set_attachment_ids(mixed $ids)
Set attachment IDs
at line 271
protected
collect_attachment_info(bool $resync)
Collect info about attachment IDs
at line 311
protected
delete_attachments_from_db($mode, $ids, $resync)
Delete attachments from database table
at line 365
protected
remove_from_filesystem($mode, $ids, $resync)
Delete attachments from filesystem
at line 446
bool
unlink_attachment(string $filename, string $mode = 'file', bool $entry_removed = false)
Delete attachment from filesystem