phpBB API Documentation
Class

acp_attachments

class acp_attachments

Properties

$id
$u_action

Methods

main($id, $mode)

array get_attachment_stats($limit $limit = '')

Get attachment file count and size of upload directory

null set_attachment_stats($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

search_imagemagick()

Search Imagick

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 secureallowdeny config field

Details

at line 49
public main($id, $mode)

Parameters

$id
$mode

at line 1325
public array get_attachment_stats($limit $limit = '')

Get attachment file count and size of upload directory

Parameters

$limit $limit string Additional limit for WHERE clause to filter stats by.

Return Value

array Returns array with stats: numfiles and uploaddir_size

at line 1347
public null set_attachment_stats($stats $stats)

Set config attachment stat values

Parameters

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

Return Value

null

at line 1361
public 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 1390
public null handle_stats_resync()

Handle stats resync.

Return Value

null

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

Build Select for category items

Parameters

$select_name
$group_id
$key

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

Extension group select

Parameters

$select_name
$default_group
$key

at line 1501
public search_imagemagick()

Search Imagick

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

Test Settings

Parameters

$error
$upload_dir
$create_directory

at line 1586
public perform_site_list()

Perform operations on sites for external linking

at line 1775
public display_order($value, $key = '')

Write display_order config field

Parameters

$value
$key

at line 1785
public max_filesize($value, $key = '')

Adjust all three max_filesize config vars for display

Parameters

$value
$key

at line 1799
public select_allow_deny($value, $key = '')

Write secureallowdeny config field

Parameters

$value
$key