[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Console/ -> FinderIndexCommand.php (summary)

Joomla! CLI

Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 497 lines (15 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

FinderIndexCommand:: (8 methods):
  __construct()
  configure()
  doExecute()
  configureIO()
  getFilters()
  purge()
  index()
  putFilters()


Class: FinderIndexCommand  - X-Ref

Console command Purges and rebuilds the index (search filters are preserved)

__construct(DatabaseInterface $db)   X-Ref
Instantiate the command.

param: DatabaseInterface  $db  Database connector

configure()   X-Ref
Initialise the command.

return: void

doExecute(InputInterface $input, OutputInterface $output)   X-Ref
Internal function to execute the command.

param: InputInterface   $input   The input to inject into the command.
param: OutputInterface  $output  The output to inject into the command.
return: integer  The command exit code

configureIO(InputInterface $input, OutputInterface $output)   X-Ref
Configures the IO

param: InputInterface   $input   Console Input
param: OutputInterface  $output  Console Output
return: void

getFilters()   X-Ref
Save static filters.

Since a purge/index cycle will cause all the taxonomy ids to change,
the static filters need to be updated with the new taxonomy ids.
The static filter information is saved prior to the purge/index
so that it can later be used to update the filters with new ids.

return: void

purge()   X-Ref
Purge the index.

return: void

index()   X-Ref
Run the indexer.

return: void

putFilters()   X-Ref
Restore static filters.

Using the saved filter information, update the filter records
with the new taxonomy ids.

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer