PHP Class phpbb\console\command\reparser\reparse

Inheritance: extends phpbb\console\command\command
显示文件 Open project: phpbb/phpbb

Protected Properties

Property Type Description
$input Symfony\Component\Console\Input\InputInterface
$io Symfony\Component\Console\Style\SymfonyStyle
$output Symfony\Component\Console\Output\OutputInterface
$reparse_lock phpbb\lock\db
$reparser_manager phpbb\textreparser\manager
$reparsers phpbb\di\service_collection
$resume_data The reparser's last $current ID as values

Public Methods

Method Description
__construct ( phpbb\user $user, phpbb\lock\db $reparse_lock, manager $reparser_manager, phpbb\di\service_collection $reparsers ) Constructor

Protected Methods

Method Description
configure ( ) : null Sets the command name and description
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Executes the command reparser:reparse
get_option ( string $option_name ) : integer Get an option value, adjusted for given reparser
reparse ( string $name ) Reparse all text handled by given reparser within given range

Method Details

__construct() public method

Constructor
public __construct ( phpbb\user $user, phpbb\lock\db $reparse_lock, manager $reparser_manager, phpbb\di\service_collection $reparsers )
$user phpbb\user
$reparse_lock phpbb\lock\db
$reparser_manager phpbb\textreparser\manager
$reparsers phpbb\di\service_collection

configure() protected method

Sets the command name and description
protected configure ( ) : null
return null

execute() protected method

Executes the command reparser:reparse
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer

get_option() protected method

Will use the last saved value if --resume is set and the option was not specified on the command line
protected get_option ( string $option_name ) : integer
$option_name string Option name
return integer

reparse() protected method

Reparse all text handled by given reparser within given range
protected reparse ( string $name )
$name string Reparser service name

Property Details

$input protected_oe property

protected InputInterface,Symfony\Component\Console\Input $input
return Symfony\Component\Console\Input\InputInterface

$io protected_oe property

protected SymfonyStyle,Symfony\Component\Console\Style $io
return Symfony\Component\Console\Style\SymfonyStyle

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface

$reparse_lock protected_oe property

protected db,phpbb\lock $reparse_lock
return phpbb\lock\db

$reparser_manager protected_oe property

protected manager,phpbb\textreparser $reparser_manager
return phpbb\textreparser\manager

$reparsers protected_oe property

protected service_collection,phpbb\di $reparsers
return phpbb\di\service_collection

$resume_data protected_oe property

The reparser's last $current ID as values
protected $resume_data