The Trongate Control Module

Trongate Control makes it easy to import SQL code and manage modules. Copy a module, visit its URL, and SQL setup happens automatically. It also checks module versions and framework updates, prompting when an update is available. Development mode only.

__construct()

Constructor for the Trongate Control module. Calls the parent constructor and blocks direct URL access to the module.

index()

The main entry point for Trongate Control. Scans the current module directory for SQL files and presents them to the user with options to preview, run, or delete. If no SQL files are found, redirects to the calling module's normal flow.

manifests()

Scans the application for all available module manifests and outputs the results as JSON. Used by the framework to discover installed modules and their metadata.

process()

Handles AJAX POST requests for SQL file operations. Accepts action data from the management interface and routes it to the appropriate handler. Supports actions such as viewing SQL content, executing SQL files, and deleting SQL files.