PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/base/services/service.php +13 -0 1.4.1 → 1.4.2 View file →
@@ -616,8 +616,21 @@
616 616 }
617 617 return $this->service->purge_all_versions($key);
618 618 }
619 619
620 + /**
621 + * Exposes the active provider's already-constructed SDK client, for callers
622 + * (e.g. StreamWrapper) that need it directly rather than going through this
623 + * class's own upload/delete methods.
624 + * @since 1.4.3
625 + */
626 + public function get_active_client() {
627 + if (!$this->service || !method_exists($this->service, 'get_client')) {
628 + return null;
629 + }
630 + return $this->service->get_client();
631 + }
632 +
620 633
621 634 /**
622 635 * Move object to server from cloud
623 636 */