mit einem Klick
ip-webhosting-addon
ip-webhosting-addon enthält 5 gesammelte Skills von myadmin-plugins, mit Repository-Berufsabdeckung und Skill-Detailseiten auf SkillsMP.
Skills in diesem Repository
Creates a new AddonHandler registration block inside a `getAddon` method. Use when user says 'add addon', 'register addon', 'new webhosting addon', or adds a new `load_addons` hook handler. Generates `function_requirements('class.AddonHandler')`, fluent `->set_text()`, `->set_cost()`, `->setEnable()`, `->setDisable()`, `->register()` chain followed by `$service->addAddon()`. Do NOT use for editing existing addons or for non-addon hook handlers.
Adds a new settings field inside getSettings() using add_text_setting or similar method on the MyAdmin\Settings object. Use when user says 'add setting', 'new config option', 'add cost field', 'register a setting', or extends the webhosting.settings handler. Always wraps label/description in _() for i18n and calls setTarget('module') before and setTarget('global') after. Do NOT use for reading settings at runtime or for non-settings configuration.
Adds a new Symfony EventDispatcher hook to src/Plugin.php in the myadmin-ip-webhosting-addon plugin. Use when user says 'add hook', 'register event', 'listen to webhosting event', 'add a new hook key to getHooks', or needs a new static handler method. Generates the getHooks() array entry and the corresponding static handler method with GenericEvent $event signature. Do NOT use for modifying existing hook handlers (getAddon, getSettings) or for non-Plugin.php event wiring.
Writes PHPUnit ^9.6 test cases in `tests/PluginTest.php` for the `Plugin` class static methods. Use when user says 'add test', 'write test', 'test getHooks', 'add coverage', or wants tests for `src/Plugin.php`. Bootstrap is `vendor/autoload.php`, run via `vendor/bin/phpunit`. Do NOT use for integration tests requiring a live WHM server or real DB connections.
Scaffolds WHM/cPanel \xmlapi API calls inside doEnable or doDisable methods. Use when user says 'call WHM', 'use xmlapi', 'set site IP', 'assign dedicated IP', or adds server interaction logic to Plugin.php. Handles function_requirements loading, xmlapi init with hash auth on port 2087, myadmin_log of every response, and admin mail on error. Do NOT use for DirectAdmin or storage service types — those are silently skipped by convention.