Свойство | Type | Description | |
---|---|---|---|
$id | |||
$u_action |
Свойство | Type | Description | |
---|---|---|---|
$attachment_manager | phpbb\attachment\manager | ||
$config | phpbb\config\config | ||
$db | phpbb\db\driver\driver_interface | ||
$filesystem | phpbb\filesystem\filesystem_interface | ||
$new_config | |||
$phpbb_container | ContainerBuilder | ||
$template | phpbb\template\template | ||
$user | phpbb\user |
Méthode | Description | |
---|---|---|
category_select ( $select_name, $group_id = false, $key = '' ) | Build Select for category items | |
check_stats_accuracy ( ) : boolean | string | Check accuracy of attachment statistics. | |
display_order ( $value, $key = '' ) | Write display_order config field | |
get_attachment_stats ( $limit = '' ) : array | Get attachment file count and size of upload directory | |
group_select ( $select_name, $default_group = false, $key = '' ) | Extension group select | |
handle_stats_resync ( ) : null | Handle stats resync. | |
main ( $id, $mode ) | ||
max_filesize ( $value, $key = '' ) | Adjust all three max_filesize config vars for display | |
perform_site_list ( ) | Perform operations on sites for external linking | |
search_imagemagick ( ) | Search Imagick | |
select_allow_deny ( $value, $key = '' ) | Write secure_allow_deny config field | |
set_attachment_stats ( $stats ) : null | Set config attachment stat values | |
test_upload ( &$error, $upload_dir, $create_directory = false ) | Test Settings |
public category_select ( $select_name, $group_id = false, $key = '' ) |
public check_stats_accuracy ( ) : boolean | string | ||
Résultat | boolean | string | Returns false if stats are correct or error message otherwise. |
public display_order ( $value, $key = '' ) |
public get_attachment_stats ( $limit = '' ) : array | ||
$limit | string Additional limit for WHERE clause to filter stats by. | |
Résultat | array | Returns array with stats: num_files and upload_dir_size |
public group_select ( $select_name, $default_group = false, $key = '' ) |
public handle_stats_resync ( ) : null | ||
Résultat | null |
public max_filesize ( $value, $key = '' ) |
public perform_site_list ( ) |
public select_allow_deny ( $value, $key = '' ) |
public set_attachment_stats ( $stats ) : null | ||
$stats | array Array of config key => value pairs to set. | |
Résultat | null |
public test_upload ( &$error, $upload_dir, $create_directory = false ) |
protected manager,phpbb\attachment $attachment_manager | ||
Résultat | phpbb\attachment\manager |
protected driver_interface,phpbb\db\driver $db | ||
Résultat | phpbb\db\driver\driver_interface |
protected filesystem_interface,phpbb\filesystem $filesystem | ||
Résultat | phpbb\filesystem\filesystem_interface |
protected ContainerBuilder $phpbb_container | ||
Résultat | ContainerBuilder |
protected template,phpbb\template $template | ||
Résultat | phpbb\template\template |