inc-function
OfficialSafely wrap KA API calls with logging.
Authormyadmin-plugins
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: inc-function Download link: https://github.com/myadmin-plugins/parallels-licensing/archive/main.zip#inc-function Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.