PHP Class acp_attachments

Exibir arquivo Open project: phpbb/phpbb

Public Properties

Property Type Description
$id
$u_action

Protected Properties

Property 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

Public Methods

Method 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

Method Details

category_select() public method

Build Select for category items
public category_select ( $select_name, $group_id = false, $key = '' )

check_stats_accuracy() public method

Check accuracy of attachment statistics.
public check_stats_accuracy ( ) : boolean | string
return boolean | string Returns false if stats are correct or error message otherwise.

display_order() public method

Write display_order config field
public display_order ( $value, $key = '' )

get_attachment_stats() public method

Get attachment file count and size of upload directory
public get_attachment_stats ( $limit = '' ) : array
$limit string Additional limit for WHERE clause to filter stats by.
return array Returns array with stats: num_files and upload_dir_size

group_select() public method

Extension group select
public group_select ( $select_name, $default_group = false, $key = '' )

handle_stats_resync() public method

Handle stats resync.
public handle_stats_resync ( ) : null
return null

main() public method

public main ( $id, $mode )

max_filesize() public method

Adjust all three max_filesize config vars for display
public max_filesize ( $value, $key = '' )

perform_site_list() public method

Perform operations on sites for external linking
public perform_site_list ( )

search_imagemagick() public method

Search Imagick
public search_imagemagick ( )

select_allow_deny() public method

Write secure_allow_deny config field
public select_allow_deny ( $value, $key = '' )

set_attachment_stats() public method

Set config attachment stat values
public set_attachment_stats ( $stats ) : null
$stats array Array of config key => value pairs to set.
return null

test_upload() public method

Test Settings
public test_upload ( &$error, $upload_dir, $create_directory = false )

Property Details

$attachment_manager protected_oe property

protected manager,phpbb\attachment $attachment_manager
return phpbb\attachment\manager

$config protected_oe property

protected config,phpbb\config $config
return phpbb\config\config

$db protected_oe property

protected driver_interface,phpbb\db\driver $db
return phpbb\db\driver\driver_interface

$filesystem protected_oe property

protected filesystem_interface,phpbb\filesystem $filesystem
return phpbb\filesystem\filesystem_interface

$id public_oe property

public $id

$new_config protected_oe property

protected $new_config

$phpbb_container protected_oe property

protected ContainerBuilder $phpbb_container
return ContainerBuilder

$template protected_oe property

protected template,phpbb\template $template
return phpbb\template\template

$u_action public_oe property

public $u_action

$user protected_oe property

protected user,phpbb $user
return phpbb\user