1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/13740] Add backend support for install progress tracking

PHPBB3-13740
This commit is contained in:
MateBartus
2015-06-02 21:56:27 +02:00
committed by Mate Bartus
parent 4df89d8848
commit 37b0134aa4
24 changed files with 306 additions and 22 deletions

View File

@@ -221,4 +221,12 @@ class add_bots extends \phpbb\install\task_base
$this->db->sql_query($sql);
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_ADD_BOTS';
}
}

View File

@@ -102,4 +102,12 @@ class add_languages extends \phpbb\install\task_base
$insert_buffer->flush();
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_ADD_LANGUAGES';
}
}

View File

@@ -449,4 +449,12 @@ class add_modules extends \phpbb\install\task_base
$this->module_manager->remove_cache_file($module_class);
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_ADD_MODULES';
}
}

View File

@@ -322,4 +322,12 @@ class add_config_settings extends \phpbb\install\task_base
}
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_ADD_CONFIG_SETTINGS';
}
}

View File

@@ -142,4 +142,12 @@ class add_default_data extends \phpbb\install\task_base
return '';
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_ADD_DEFAULT_DATA';
}
}

View File

@@ -195,4 +195,12 @@ class create_schema extends \phpbb\install\task_base
);
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_CREATE_DATABASE_SCHEMA';
}
}

View File

@@ -216,4 +216,12 @@ class create_config_file extends \phpbb\install\task_base
return $config_content;
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_CREATE_CONFIG_FILE';
}
}

View File

@@ -101,7 +101,7 @@ class notify_user extends \phpbb\install\task_base
$messenger->anti_abuse_headers($this->config, $this->user);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($this->install_config->get('admin_name')),
'PASSWORD' => htmlspecialchars_decode($this->install_config->get('admin_pass1')))
'PASSWORD' => htmlspecialchars_decode($this->install_config->get('admin_passwd')))
);
$messenger->send(NOTIFY_EMAIL);
}
@@ -110,4 +110,12 @@ class notify_user extends \phpbb\install\task_base
@unlink($this->phpbb_root_path . 'cache/install_lock');
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_NOTIFY_USER';
}
}

View File

@@ -51,4 +51,12 @@ class populate_migrations extends \phpbb\install\task_base
->get_classes();
$this->migrator->populate_migrations($migrations);
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return 'TASK_POPULATE_MIGRATIONS';
}
}

View File

@@ -200,4 +200,12 @@ class obtain_admin_data extends \phpbb\install\task_base implements \phpbb\insta
return $data_valid;
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -167,4 +167,12 @@ class obtain_board_data extends \phpbb\install\task_base implements \phpbb\insta
$this->io_handler->send_response();
throw new user_interaction_required_exception;
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -252,4 +252,12 @@ class obtain_database_data extends \phpbb\install\task_base implements \phpbb\in
return $data_valid;
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -148,4 +148,12 @@ class obtain_email_data extends \phpbb\install\task_base implements \phpbb\insta
throw new user_interaction_required_exception();
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -70,4 +70,12 @@ class obtain_imagick_path extends \phpbb\install\task_base implements \phpbb\ins
$this->config->set('img_imagick', $img_imagick);
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -184,4 +184,12 @@ class obtain_server_data extends \phpbb\install\task_base implements \phpbb\inst
throw new user_interaction_required_exception();
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -254,4 +254,12 @@ class check_filesystem extends \phpbb\install\task_base
}
}
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}

View File

@@ -171,4 +171,12 @@ class check_server_environment extends \phpbb\install\task_base
$this->set_test_passed(false);
}
/**
* {@inheritdoc}
*/
public function get_task_lang_name()
{
return '';
}
}