__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Automattic\WooCommerce\Blueprint;

use Automattic\WooCommerce\Blueprint\ResourceStorages\ResourceStorage;

/**
 * Class ResourceStorages
 */
class ResourceStorages {
	/**
	 * Storage collection.
	 *
	 * @var ResourceStorages[]
	 */
	protected array $storages = array();

	/**
	 * Add a downloader.
	 *
	 * @param ResourceStorage $downloader The downloader to add.
	 *
	 * @return void
	 */
	public function add_storage( ResourceStorage $downloader ) {
		$supported_resource = $downloader->get_supported_resource();
		if ( ! isset( $this->storages[ $supported_resource ] ) ) {
			$this->storages[ $supported_resource ] = array();
		}
		$this->storages[ $supported_resource ][] = $downloader;
	}

	/**
	 * Check if the resource is supported.
	 *
	 * @param string $resource_type The resource type to check.
	 *
	 * @return bool
	 */
	public function is_supported_resource( $resource_type ) {
		return isset( $this->storages[ $resource_type ] );
	}

	/**
	 * Download the resource.
	 *
	 * @param string $slug The slug of the resource to download.
	 * @param string $resource_type The resource type to download.
	 *
	 * @return false|string
	 */
	public function download( $slug, $resource_type ) {
		if ( ! isset( $this->storages[ $resource_type ] ) ) {
			return false;
		}
		$storages = $this->storages[ $resource_type ];
		foreach ( $storages as $storage ) {
			$found = $storage->download( $slug );
			if ( $found ) {
				return $found;
			}
		}

		return false;
	}
}

Filemanager

Name Type Size Permission Actions
Cli Folder 0775
Exporters Folder 0775
Importers Folder 0775
ResourceStorages Folder 0775
ResultFormatters Folder 0775
Schemas Folder 0775
Steps Folder 0775
docs Folder 0775
BuiltInExporters.php File 474 B 0664
BuiltInStepProcessors.php File 1.81 KB 0664
ClassExtractor.php File 6.05 KB 0664
Cli.php File 1.78 KB 0664
ExportSchema.php File 4.3 KB 0664
ImportSchema.php File 2.34 KB 0664
ImportStep.php File 4.46 KB 0664
Logger.php File 4.07 KB 0664
ResourceStorages.php File 1.45 KB 0664
StepProcessor.php File 680 B 0664
StepProcessorResult.php File 3.56 KB 0664
UsePluginHelpers.php File 3.13 KB 0664
UsePubSub.php File 1.51 KB 0664
UseWPFunctions.php File 9.72 KB 0664
Util.php File 4.39 KB 0664
Filemanager