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
$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

null
set_attachment_stats($stats)

Set config attachment stat values

bool|string
check_stats_accuracy()

Check accuracy of attachment statistics.

null
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

test_upload($error, $upload_dir, $create_directory = false)

Test Settings

perform_site_list()

Perform operations on sites for external linking

display_order($value, $key = '')

Write display_order config field

max_filesize($value, $key = '')

Adjust all three max_filesize config vars for display

select_allow_deny($value, $key = '')

Write secure_allow_deny config field

Details

at line 52
main($id, $mode)

No description

Parameters

$id
$mode

at line 1328
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 1350
null set_attachment_stats($stats)

Set config attachment stat values

Parameters

$stats

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

Return Value

null

at line 1364
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 1393
null handle_stats_resync()

Handle stats resync.

Return Value

null

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

Build Select for category items

Parameters

$select_name
$group_id
$key

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

Extension group select

Parameters

$select_name
$default_group
$key

at line 1503
test_upload($error, $upload_dir, $create_directory = false)

Test Settings

Parameters

$error
$upload_dir
$create_directory

at line 1547
perform_site_list()

Perform operations on sites for external linking

at line 1736
display_order($value, $key = '')

Write display_order config field

Parameters

$value
$key

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

Adjust all three max_filesize config vars for display

Parameters

$value
$key

at line 1760
select_allow_deny($value, $key = '')

Write secure_allow_deny config field

Parameters

$value
$key