What problem does it solve?
Adds a new procedural function to src/parallels.inc.php wrapping a \Detain\Parallels\Parallels KA API method with the standard myadmin_log + request_log + try/catch pattern. Use when user says 'add function', 'new API call', 'call parallels method', or needs to expose a KA API method. Do NOT use for Plugin.php static event handlers or bin/ scripts.
Core Features & Use Cases
- Generates a new parallels_<action>() function that calls a Detain\Parallels\Parallels method with no type hints or return types.
- Wraps the call in a try/catch for XML_RPC2_CurlException and returns false on failure.
- Logs activity via myadmin_log and request_log for both success and failure paths, using the 'licenses' module and 'parallels' service.
- Avoids creating namespace declarations or static event handlers; targeted for simple procedural additions to src/parallels.inc.php.
Quick Start
Create a new parallels_<action>() wrapper for a KA API method following the project's logging and error-handling pattern.