# media-cloud-sync/1.2.2/includes/config/schema.php

Media Cloud Sync, version 1.2.2. 48 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.2.2/code/includes/config/schema.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.2.2/raw/includes/config/schema.php
- Modified: 2025-06-01T21:16:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.2.2/code/includes/config/schema.php#L10-L20`.

```php
<?php
namespace Dudlewebs\WPMCS;

defined('ABSPATH') || exit;

class Schema {
	private static $constants;
	private static $service_labels;

	// Static initializer to handle dynamic operations
	static function init() {
		self::$constants = [
			'S3_MULTIPART_MIN_FILE_SIZE' 		=> 5242880,
			'GCLOUD_MULTIPART_MIN_FILE_SIZE' 	=> 5242880,
			'DOCEAN_MULTIPART_MIN_FILE_SIZE' 	=> 5242880,
			'S3COMPATIBLE_MULTIPART_MIN_FILE_SIZE' => 5242880,
			'CACHE_GROUP'						=> WPMCS_TOKEN.'_cache_group',
			'CACHE_EXPIRE'						=> 24*60*60,
			'META_KEY'							=> WPMCS_TOKEN.'_meta_data',
			'CONTENT_META_KEY'					=> WPMCS_TOKEN.'_post_meta_data',
			'GLOBAL_SETTINGS_KEY'				=> WPMCS_TOKEN.'_global_settings',
			'COUNTER_KEY'						=> WPMCS_TOKEN.'_counter_data',
			'UPLOADS'							=> WPMCS_TOKEN.'_uploads'
		];

		self::$service_labels = [
			's3' 			=> esc_html__('AWS/S3', 'media-cloud-sync'),
			'gcloud'		=> esc_html__('Google Cloud Storage', 'media-cloud-sync'),
			'docean' 		=> esc_html__('Digital Ocean Spaces', 'media-cloud-sync'),
			's3compatible' 	=> esc_html__('S3 Compatible', 'media-cloud-sync')
		];
	}

	/**
	 * Get schema constant by key.
	 */
	public static function getConstant($key, $default = false) {
		return isset(self::$constants[$key]) ? self::$constants[$key] : $default;
	}

	/**
	 * Get service label by key.
	 */
	public static function getServiceLabels($key, $default = false) {
		return isset(self::$service_labels[$key]) ? self::$service_labels[$key] : $default;
	}
}

```
