mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-17 21:10:00 +02:00
59 lines
886 B
PHP
59 lines
886 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\storage\provider;
|
|
|
|
class local implements provider_interface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function get_name()
|
|
{
|
|
return 'local';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function get_adapter_class()
|
|
{
|
|
return \phpbb\storage\adapter\local::class;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function get_options()
|
|
{
|
|
return [
|
|
'path' => ['type' => 'text'],
|
|
'subfolders' => [
|
|
'type' => 'radio',
|
|
'options' => [
|
|
'ENABLE' => '1',
|
|
'DISABLE' => '0',
|
|
],
|
|
],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function is_available()
|
|
{
|
|
return true;
|
|
}
|
|
}
|