PHP Class phpbb\console\command\update\check

Inheritance: extends phpbb\console\command\command
Datei anzeigen Open project: phpbb/phpbb

Protected Properties

Property Type Description
$config phpbb\config\config
$phpbb_container Symfony\Component\DependencyInjection\ContainerBuilder

Public Methods

Method Description
__construct ( phpbb\user $user, phpbb\config\config $config, Symfony\Component\DependencyInjection\ContainerInterface $phpbb_container, phpbb\language\language $language ) Construct method

Protected Methods

Method Description
check_all_ext ( SymfonyStyle $io, $stability, boolean $recheck ) : integer Check if all the available extensions are up to date
check_core ( Symfony\Component\Console\Input\InputInterface $input, SymfonyStyle $io, string $stability, boolean $recheck ) : integer Check if the core is up to date
check_ext ( Symfony\Component\Console\Input\InputInterface $input, SymfonyStyle $io, string $stability, boolean $recheck, string $ext_name ) : integer Check if a given extension is up to date
configure ( ) : null Configures the service.
display_versions ( SymfonyStyle $io, array $updates_available ) Display the details of the available updates
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Executes the command.

Method Details

__construct() public method

Construct method
public __construct ( phpbb\user $user, phpbb\config\config $config, Symfony\Component\DependencyInjection\ContainerInterface $phpbb_container, phpbb\language\language $language )
$user phpbb\user
$config phpbb\config\config
$phpbb_container Symfony\Component\DependencyInjection\ContainerInterface
$language phpbb\language\language

check_all_ext() protected method

Check if all the available extensions are up to date
protected check_all_ext ( SymfonyStyle $io, $stability, boolean $recheck ) : integer
$io Symfony\Component\Console\Style\SymfonyStyle IO handler, for formatted and unified IO
$recheck boolean Disallow the use of the cache
return integer

check_core() protected method

Check if the core is up to date
protected check_core ( Symfony\Component\Console\Input\InputInterface $input, SymfonyStyle $io, string $stability, boolean $recheck ) : integer
$input Symfony\Component\Console\Input\InputInterface Input stream, used to get the options.
$io Symfony\Component\Console\Style\SymfonyStyle IO handler, for formatted and unified IO
$stability string Force a given stability
$recheck boolean Disallow the use of the cache
return integer

check_ext() protected method

Check if a given extension is up to date
protected check_ext ( Symfony\Component\Console\Input\InputInterface $input, SymfonyStyle $io, string $stability, boolean $recheck, string $ext_name ) : integer
$input Symfony\Component\Console\Input\InputInterface Input stream, used to get the options.
$io Symfony\Component\Console\Style\SymfonyStyle IO handler, for formatted and unified IO
$stability string Force a given stability
$recheck boolean Disallow the use of the cache
$ext_name string The extension name
return integer

configure() protected method

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

display_versions() protected method

Display the details of the available updates
protected display_versions ( SymfonyStyle $io, array $updates_available )
$io Symfony\Component\Console\Style\SymfonyStyle IO handler, for formatted and unified IO
$updates_available array The list of the available updates

execute() protected method

Checks if an update is available. If at least one is available, a message is printed and if verbose mode is set the list of possible updates is printed. If their is none, nothing is printed unless verbose mode is set.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface Input stream, used to get the options.
$output Symfony\Component\Console\Output\OutputInterface Output stream, used to print messages.
return integer 0 if the board is up to date, 1 if it is not and 2 if an error occured.

Property Details

$config protected_oe property

protected config,phpbb\config $config
return phpbb\config\config

$phpbb_container protected_oe property

protected ContainerBuilder,Symfony\Component\DependencyInjection $phpbb_container
return Symfony\Component\DependencyInjection\ContainerBuilder