PHP Класс acp_attachments

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$id
$u_action

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Описание методов

category_select() публичный Метод

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

check_stats_accuracy() публичный Метод

Check accuracy of attachment statistics.
public check_stats_accuracy ( ) : boolean | string
Результат boolean | string Returns false if stats are correct or error message otherwise.

display_order() публичный Метод

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

get_attachment_stats() публичный Метод

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.
Результат array Returns array with stats: num_files and upload_dir_size

group_select() публичный Метод

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

handle_stats_resync() публичный Метод

Handle stats resync.
public handle_stats_resync ( ) : null
Результат null

main() публичный Метод

public main ( $id, $mode )

max_filesize() публичный Метод

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

perform_site_list() публичный Метод

Perform operations on sites for external linking
public perform_site_list ( )

search_imagemagick() публичный Метод

Search Imagick
public search_imagemagick ( )

select_allow_deny() публичный Метод

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

set_attachment_stats() публичный Метод

Set config attachment stat values
public set_attachment_stats ( $stats ) : null
$stats array Array of config key => value pairs to set.
Результат null

test_upload() публичный Метод

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

Описание свойств

$attachment_manager защищенное свойство

protected manager,phpbb\attachment $attachment_manager
Результат phpbb\attachment\manager

$config защищенное свойство

protected config,phpbb\config $config
Результат phpbb\config\config

$db защищенное свойство

protected driver_interface,phpbb\db\driver $db
Результат phpbb\db\driver\driver_interface

$filesystem защищенное свойство

protected filesystem_interface,phpbb\filesystem $filesystem
Результат phpbb\filesystem\filesystem_interface

$id публичное свойство

public $id

$new_config защищенное свойство

protected $new_config

$phpbb_container защищенное свойство

protected ContainerBuilder $phpbb_container
Результат ContainerBuilder

$template защищенное свойство

protected template,phpbb\template $template
Результат phpbb\template\template

$u_action публичное свойство

public $u_action

$user защищенное свойство

protected user,phpbb $user
Результат phpbb\user