PHP Class acp_modules

Mostrar archivo Open project: phpbb/phpbb Class Usage Examples

Public Properties

Property Type Description
$module_class
$parent_id
$u_action

Public Methods

Method Description
delete_module ( $module_id ) Remove module from tree
get_module_branch ( $module_id, $type = 'all', $order = 'descending', $include_module = true ) Get module branch
get_module_infos ( string $module = '', boolean | string $module_class = false, boolean $use_all_available = false ) : array Get available module information from module files
get_module_row ( $module_id ) Get row for specified module
lang_name ( $module_langname ) Return correct language name
main ( $id, $mode )
make_module_select ( $select_id = false, $ignore_id = false, $ignore_acl = false, $ignore_nonpost = false, $ignore_emptycat = true, $ignore_noncat = false ) Simple version of jumpbox, just lists modules
move_module ( $from_module_id, $to_parent_id ) Move module around the tree
move_module_by ( $module_row, $action = 'move_up', $steps = 1 ) Move module position by $steps up/down
remove_cache_file ( ) Remove modules cache file
update_module_data ( &$module_data, boolean $run_inline = false ) Update/Add module

Method Details

delete_module() public method

Remove module from tree
public delete_module ( $module_id )

get_module_branch() public method

Get module branch
public get_module_branch ( $module_id, $type = 'all', $order = 'descending', $include_module = true )

get_module_infos() public method

Get available module information from module files
public get_module_infos ( string $module = '', boolean | string $module_class = false, boolean $use_all_available = false ) : array
$module string
$module_class boolean | string
$use_all_available boolean Use all available instead of just all enabled extensions
return array

get_module_row() public method

Get row for specified module
public get_module_row ( $module_id )

lang_name() public method

Return correct language name
public lang_name ( $module_langname )

main() public method

public main ( $id, $mode )

make_module_select() public method

Simple version of jumpbox, just lists modules
public make_module_select ( $select_id = false, $ignore_id = false, $ignore_acl = false, $ignore_nonpost = false, $ignore_emptycat = true, $ignore_noncat = false )

move_module() public method

Move module around the tree
public move_module ( $from_module_id, $to_parent_id )

move_module_by() public method

Move module position by $steps up/down
public move_module_by ( $module_row, $action = 'move_up', $steps = 1 )

remove_cache_file() public method

Remove modules cache file
public remove_cache_file ( )

update_module_data() public method

Update/Add module
public update_module_data ( &$module_data, boolean $run_inline = false )
$run_inline boolean if set to true errors will be returned and no logs being written

Property Details

$module_class public_oe property

public $module_class

$parent_id public_oe property

public $parent_id

$u_action public_oe property

public $u_action