1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 11:28:33 +01:00
php-phpbb/phpBB/phpbb/install/task_base.php
Mate Bartus 8f5a0ad6f7 [ticket/14039] Revamp updater
PHPBB3-14039
2015-10-17 23:05:57 +02:00

54 lines
861 B
PHP

<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\install;
/**
* Base class for installer task
*/
abstract class task_base implements task_interface
{
/**
* @var bool
*/
protected $is_essential;
/**
* Constructor
*
* @param bool $essential
*/
public function __construct($essential = true)
{
$this->is_essential = $essential;
}
/**
* {@inheritdoc}
*/
public function is_essential()
{
return $this->is_essential;
}
/**
* {@inheritdoc}
*
* Note: Overwrite this method if your task is non-essential!
*/
public function check_requirements()
{
return true;
}
}