Current Path : /var/www/mainsite/wp-content/plugins/duplicator-pro/src/Models/Storages/ |
Current File : /var/www/mainsite/wp-content/plugins/duplicator-pro/src/Models/Storages/CloudflareStorage.php |
<?php /** * * @package Duplicator * @copyright (c) 2022, Snap Creek LLC */ namespace Duplicator\Models\Storages; class CloudflareStorage extends AmazonS3CompatibleStorage { /** * Return the storage type * * @return int */ public static function getSType() { return 11; } /** * Returns the storage type name. * * @return string */ public static function getStypeName() { return __('Cloudflare R2', 'duplicator-pro'); } /** * Get storage location string * * @return string */ public function getLocationString() { return 'https://dash.cloudflare.com/'; } /** * Returns the storage location label. * * @return string The storage location label */ protected function getLocationLabel() { return __('Dashboard', 'duplicator-pro'); } /** * Returns the storage type icon url. * * @return string The icon url */ protected static function getIconUrl() { return DUPLICATOR_PRO_IMG_URL . '/cloudflare.svg'; } /** * Get documentation links * * @return array<int,array<string,string>> */ protected static function getDocumentationLinks() { return [ [ 'label' => __('Overview', 'duplicator-pro'), 'url' => 'https://developers.cloudflare.com/r2/', ], [ 'label' => __('S3 Compatible API', 'duplicator-pro'), 'url' => 'https://developers.cloudflare.com/r2/api/s3/api/', ], ]; } }