Свойство | Type | Description | |
---|---|---|---|
$u_action |
Свойство | Type | Description | |
---|---|---|---|
$auth | phpbb\auth\auth | ||
$cache | phpbb\cache\driver\driver_interface | ||
$config | phpbb\config\config | ||
$db | phpbb\db\driver\driver_interface | ||
$default_style | |||
$mode | |||
$php_ext | string | ||
$phpbb_root_path | string | ||
$request | phpbb\request\request_interface | ||
$reserved_style_names | |||
$s_hidden_fields | |||
$styles_list_cols | |||
$styles_path | |||
$styles_path_absolute | |||
$template | phpbb\template\template | ||
$text_formatter_cache | phpbb\textformatter\cache_interface | ||
$u_base_action | |||
$user | phpbb\user |
Méthode | Description | |
---|---|---|
main ( $id, $mode ) | ||
sort_styles ( $style1, $style2 ) | Sort styles |
Méthode | Description | |
---|---|---|
action_activate ( ) | Activate styles | |
action_deactivate ( ) | Deactivate styles | |
action_details ( ) | Show style details | |
action_install ( ) | Install style(s) | |
action_uninstall ( ) | Confirm styles removal | |
action_uninstall_confirmed ( array $ids, boolean $delete_files ) | Uninstall styles(s) | |
default_bitfield ( ) : string | Generates default bitfield | |
delete_style_files ( string $path, string $dir = '' ) : boolean | Delete all files in style directory | |
find_available ( boolean $all ) : array | Find styles available for installation | |
find_possible_parents ( array $styles, integer $id, integer $parent, integer $level ) : array | Find all possible parent styles for style | |
find_style_dirs ( ) : array | Find all directories that have styles | |
frontend ( ) | Main page | |
get_styles ( ) : array | Lists all styles | |
get_users ( ) : array | Count users for each style | |
install_style ( array $style ) : integer | Install style | |
list_style ( array &$style, integer $level ) | Show item in styles list | |
read_style_cfg ( string $dir ) : array | boolean | Read style configuration file | |
request_vars ( string $name, string | integer $default, boolean $error = false ) : array | Get list of items from posted data | |
show_available ( ) | Show list of styles that can be installed | |
show_available_child_styles ( array &$styles, string $name, integer $level ) | Show available styles tree | |
show_installed ( ) | List installed styles | |
show_styles_list ( array &$styles, integer $parent, integer $level ) | Show styles list | |
uninstall_style ( array $style ) : boolean | string | Uninstall style | |
update_styles_tree ( array &$styles, array | false $style = false ) : boolean | Update styles tree | |
welcome_message ( string $title, string $description ) | Show welcome message |
protected action_uninstall_confirmed ( array $ids, boolean $delete_files ) | ||
$ids | array | List of style IDs |
$delete_files | boolean | If true, script will attempt to remove files for selected styles |
protected default_bitfield ( ) : string | ||
Résultat | string | Bitfield |
protected find_available ( boolean $all ) : array | ||
$all | boolean | if true, function will return all installable styles. if false, function will return only styles that can be installed |
Résultat | array | List of styles |
protected find_style_dirs ( ) : array | ||
Résultat | array | Directory names |
protected get_styles ( ) : array | ||
Résultat | array | Rows with styles data |
protected install_style ( array $style ) : integer | ||
$style | array | style data |
Résultat | integer | Style id |
protected list_style ( array &$style, integer $level ) | ||
$style | array | style row |
$level | integer | style inheritance level |
protected show_available ( ) |
protected welcome_message ( string $title, string $description ) | ||
$title | string | main title |
$description | string | page description |
protected driver_interface,phpbb\cache\driver $cache | ||
Résultat | phpbb\cache\driver\driver_interface |
protected driver_interface,phpbb\db\driver $db | ||
Résultat | phpbb\db\driver\driver_interface |
protected request_interface,phpbb\request $request | ||
Résultat | phpbb\request\request_interface |
protected template,phpbb\template $template | ||
Résultat | phpbb\template\template |
protected cache_interface,phpbb\textformatter $text_formatter_cache | ||
Résultat | phpbb\textformatter\cache_interface |