class acp_attachments

Properties

protected driver_interface $db
protected config $config
protected language $language
protected ContainerBuilder $phpbb_container
protected template $template
protected user $user
protected filesystem_interface $filesystem
protected manager $attachment_manager
protected helper $controller_helper
$id
$u_action
protected $new_config

Methods

main($id, $mode)

No description

array
get_attachment_stats($limit = '')

Get attachment file count and size of upload directory

void
set_attachment_stats($stats)

Set config attachment stat values

bool|string
check_stats_accuracy()

Check accuracy of attachment statistics.

void
handle_stats_resync()

Handle stats resync.

category_select($select_name, $group_id = false, $key = '')

Build Select for category items

group_select($select_name, $default_group = false, $key = '')

Extension group select

perform_site_list()

Perform operations on sites for external linking

max_filesize($value, $key = '')

Adjust all three max_filesize config vars for display

Details

at line 66
main($id, $mode)

No description

Parameters

$id
$mode

at line 1344
array get_attachment_stats($limit = '')

Get attachment file count and size of upload directory

Parameters

$limit

string Additional limit for WHERE clause to filter stats by.

Return Value

array

Returns array with stats: num_files and upload_dir_size

at line 1366
void set_attachment_stats($stats)

Set config attachment stat values

Parameters

$stats

array Array of config key => value pairs to set.

Return Value

void

at line 1380
bool|string check_stats_accuracy()

Check accuracy of attachment statistics.

Return Value

bool|string

Returns false if stats are correct or error message otherwise.

at line 1409
void handle_stats_resync()

Handle stats resync.

Return Value

void

at line 1433
category_select($select_name, $group_id = false, $key = '')

Build Select for category items

Parameters

$select_name
$group_id
$key

at line 1481
group_select($select_name, $default_group = false, $key = '')

Extension group select

Parameters

$select_name
$default_group
$key

at line 1532
perform_site_list()

Perform operations on sites for external linking

at line 1721
max_filesize($value, $key = '')

Adjust all three max_filesize config vars for display

Parameters

$value
$key