[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 480 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
delete:: (8 methods):
__construct()
delete()
set_attachment_ids()
set_sql_constraints()
collect_attachment_info()
delete_attachments_from_db()
remove_from_filesystem()
unlink_attachment()
__construct(config $config, driver_interface $db, dispatcher $dispatcher, filesystem $filesystem, resync $resync, $phpbb_root_path) X-Ref |
Attachment delete class constructor param: config $config param: driver_interface $db param: dispatcher $dispatcher param: filesystem $filesystem param: resync $resync param: string $phpbb_root_path |
delete($mode, $ids, $resync = true) X-Ref |
Delete Attachments param: string $mode can be: post|message|topic|attach|user param: mixed $ids can be: post_ids, message_ids, topic_ids, attach_ids, user_ids param: bool $resync set this to false if you are deleting posts or topics return: int|bool Number of deleted attachments or false if something |
set_attachment_ids($ids) X-Ref |
Set attachment IDs param: mixed $ids ID or array of IDs return: bool True if attachment IDs were set, false if not |
set_sql_constraints($mode) X-Ref |
Set SQL constraints based on mode param: string $mode Delete mode; can be: post|message|topic|attach|user |
collect_attachment_info($resync) X-Ref |
Collect info about attachment IDs param: bool $resync Whether topics/posts should be resynced after delete |
delete_attachments_from_db($mode, $ids, $resync) X-Ref |
Delete attachments from database table |
remove_from_filesystem($mode, $ids, $resync) X-Ref |
Delete attachments from filesystem |
unlink_attachment($filename, $mode = 'file', $entry_removed = false) X-Ref |
Delete attachment from filesystem param: string $filename Filename of attachment param: string $mode Delete mode param: bool $entry_removed Whether entry was removed. Defaults to false return: bool True if file was removed, false if not |
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |