manager
class manager
Attachment manager
Properties
protected delete | $delete | ||
protected resync | $resync | ||
protected upload | $upload |
Methods
int|bool
delete(string $mode, mixed $ids, bool $resync = true)
Wrapper method for deleting attachments
bool
unlink(string $filename, string $mode = 'file', bool $entry_removed = false)
Wrapper method for deleting attachments from filesystem
resync(string $type, array $ids)
Wrapper method for resyncing specified type
array
upload(string $form_name, int $forum_id, bool $local = false, string $local_storage = '', bool $is_message = false, array $local_filedata = [])
Wrapper method for uploading attachment
Details
at line 37
__construct(delete $delete, resync $resync, upload $upload)
Constructor for attachment manager
at line 54
int|bool
delete(string $mode, mixed $ids, bool $resync = true)
Wrapper method for deleting attachments
at line 67
bool
unlink(string $filename, string $mode = 'file', bool $entry_removed = false)
Wrapper method for deleting attachments from filesystem
at line 78
resync(string $type, array $ids)
Wrapper method for resyncing specified type
at line 95
array
upload(string $form_name, int $forum_id, bool $local = false, string $local_storage = '', bool $is_message = false, array $local_filedata = [])
Wrapper method for uploading attachment