[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

/phpbb/console/command/fixup/ -> fix_left_right_ids.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 137 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

fix_left_right_ids:: (4 methods):
  __construct()
  configure()
  execute()
  fix_ids_tree()


Class: fix_left_right_ids  - X-Ref

__construct(\phpbb\user $user, \phpbb\db\driver\driver_interface $db, \phpbb\cache\driver\driver_interface $cache)   X-Ref
Constructor

param: \phpbb\user                            $user    User instance
param: \phpbb\db\driver\driver_interface        $db        Database connection
param: \phpbb\cache\driver\driver_interface    $cache    Cache instance

configure()   X-Ref
{@inheritdoc}


execute(InputInterface $input, OutputInterface $output)   X-Ref
Executes the command fixup:fix-left-right-ids.

Repairs the tree structure of the forums and modules.
The code is mainly borrowed from Support toolkit for phpBB Olympus

param: InputInterface  $input  An InputInterface instance
param: OutputInterface $output An OutputInterface instance
return: void

fix_ids_tree(&$i, $field, $table, $parent_id = 0, $where = array()   X-Ref
Item's tree structure rebuild helper
The item is either forum or ACP/MCP/UCP module

param: int        $i            Item id offset index
param: string    $field        The key field to fix, forum_id|module_id
param: string    $table        The table name to perform, FORUMS_TABLE|MODULES_TABLE
param: int        $parent_id    Parent item id
param: array        $where        Additional WHERE clause condition
return: bool    True on rebuild success, false otherwise



Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1