PHP Класс phpbb\console\command\update\check

Наследование: extends phpbb\console\command\command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$config phpbb\config\config
$phpbb_container Symfony\Component\DependencyInjection\ContainerBuilder

Открытые методы

Метод Описание
__construct ( phpbb\user $user, phpbb\config\config $config, Symfony\Component\DependencyInjection\ContainerInterface $phpbb_container, phpbb\language\language $language ) Construct method

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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() защищенный Метод

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
Результат integer

check_core() защищенный Метод

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
Результат integer

check_ext() защищенный Метод

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
Результат integer

configure() защищенный Метод

Sets the name and description of the command.
protected configure ( ) : null
Результат null

display_versions() защищенный Метод

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() защищенный Метод

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.
Результат integer 0 if the board is up to date, 1 if it is not and 2 if an error occured.

Описание свойств

$config защищенное свойство

protected config,phpbb\config $config
Результат phpbb\config\config

$phpbb_container защищенное свойство

protected ContainerBuilder,Symfony\Component\DependencyInjection $phpbb_container
Результат Symfony\Component\DependencyInjection\ContainerBuilder