PHP Class acp_attachments

Afficher le fichier Open project: phpbb/phpbb

Méthodes publiques

Свойство Type Description
$id
$u_action

Protected Properties

Свойство 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éthodes publiques

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

Method Details

category_select() public méthode

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

check_stats_accuracy() public méthode

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

display_order() public méthode

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

get_attachment_stats() public méthode

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.
Résultat array Returns array with stats: num_files and upload_dir_size

group_select() public méthode

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

handle_stats_resync() public méthode

Handle stats resync.
public handle_stats_resync ( ) : null
Résultat null

main() public méthode

public main ( $id, $mode )

max_filesize() public méthode

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

perform_site_list() public méthode

Perform operations on sites for external linking
public perform_site_list ( )

search_imagemagick() public méthode

Search Imagick
public search_imagemagick ( )

select_allow_deny() public méthode

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

set_attachment_stats() public méthode

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

test_upload() public méthode

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

Property Details

$attachment_manager protected_oe property

protected manager,phpbb\attachment $attachment_manager
Résultat phpbb\attachment\manager

$config protected_oe property

protected config,phpbb\config $config
Résultat phpbb\config\config

$db protected_oe property

protected driver_interface,phpbb\db\driver $db
Résultat phpbb\db\driver\driver_interface

$filesystem protected_oe property

protected filesystem_interface,phpbb\filesystem $filesystem
Résultat 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
Résultat ContainerBuilder

$template protected_oe property

protected template,phpbb\template $template
Résultat phpbb\template\template

$u_action public_oe property

public $u_action

$user protected_oe property

protected user,phpbb $user
Résultat phpbb\user