GRAYBYTE WORDPRESS FILE MANAGER5471

Server IP : 162.213.255.40 / Your IP : 216.73.216.141
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/src/StoreApi/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/src/StoreApi//Formatters.php
<?php
namespace Automattic\WooCommerce\StoreApi;

use \Exception;
use Automattic\WooCommerce\StoreApi\Formatters\DefaultFormatter;

/**
 * Formatters class.
 *
 * Allows formatter classes to be registered. Formatters are exposed to extensions via the ExtendSchema class.
 */
class Formatters {
	/**
	 * Holds an array of formatter class instances.
	 *
	 * @var array
	 */
	private $formatters = [];

	/**
	 * Get a new instance of a formatter class.
	 *
	 * @throws Exception An Exception is thrown if a non-existing formatter is used and the user is admin.
	 *
	 * @param string $name Name of the formatter.
	 * @return FormatterInterface Formatter class instance.
	 */
	public function __get( $name ) {
		if ( ! isset( $this->formatters[ $name ] ) ) {
			if ( defined( 'WP_DEBUG' ) && WP_DEBUG && current_user_can( 'manage_woocommerce' ) ) {
				throw new Exception( $name . ' formatter does not exist' );
			}
			return new DefaultFormatter();
		}
		return $this->formatters[ $name ];
	}

	/**
	 * Register a formatter class for usage.
	 *
	 * @param string $name Name of the formatter.
	 * @param string $class A formatter class name.
	 */
	public function register( $name, $class ) {
		$this->formatters[ $name ] = new $class();
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Exceptions
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Formatters
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Payments
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Routes
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Schemas
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
Utilities
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
Authentication.php
10.079 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
Formatters.php
1.21 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
Legacy.php
2.247 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
RoutesController.php
6.468 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
SchemaController.php
3.684 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
SessionHandler.php
2.655 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
StoreApi.php
3.052 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
deprecated.php
7.968 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
functions.php
2.701 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF