PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.8.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.8.0
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / workspaces / module.php

module.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 3.8.0, at modules/workspaces/module.php

39 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Workspaces module (spec 030-workspaces).
4 *
5 * Collaborative workspaces: CRUD, sharing/membership, browsing, the workspace
6 * switcher, and workspace-scoped file operations (add/delete). Relocated
7 * verbatim from includes/API/WorkSpaces.php — behavior byte-identical (same
8 * routes, params, permission logic).
9 *
10 * SCOPE NOTE: copy/move of a personal-cloud file into a workspace, and
11 * delete/download of a personal-cloud file, are served by modules/my-cloud's
12 * (spec 028) endpoints — this module does not duplicate that surface (see
13 * spec.md's Ownership & Artifacts section). The genuinely-shared UI consumed
14 * by both this module and modules/my-cloud (CloudsLayout, Actions,
15 * ViewButtons, ContextMenu, CloudFileName, CloudSidebar, the multi-source
16 * Add-File/CopyMove/DeleteFile modals, and the mixed clouds+workspace redux
17 * actions/saga files) intentionally stays in react-src/ rather than being
18 * force-owned by either module. See this module's assets/js/CLAUDE.md and
19 * data-model.md's "Module Home" section for the full boundary reasoning.
20 *
21 * @package Templately
22 */
23
24 namespace Templately\Modules\Workspaces;
25
26 use Templately\Core\Module_Base;
27 use Templately\Modules\Workspaces\REST\WorkSpaces;
28
29 class Module extends Module_Base {
30
31 public function get_name(): string {
32 return 'workspaces';
33 }
34
35 public function register_rest_routes(): void {
36 WorkSpaces::get_instance()->register_routes();
37 }
38 }
39