https://github.com/plesk/ext-advisor-integration-example
https://github.com/plesk/ext-advisor-integration-example
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/plesk/ext-advisor-integration-example
- Owner: plesk
- Created: 2018-11-06T10:43:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T05:52:25.000Z (over 3 years ago)
- Last Synced: 2023-04-05T01:48:23.541Z (about 3 years ago)
- Language: PHP
- Size: 1.29 MB
- Stars: 2
- Watchers: 42
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To add recommendations via Advisor Integration API, you need to add a hook that implements `RecommendationsHookInterface`.
This interface contains the following methods:
* With the `getRecommendations` method, you add your recommendations with steps.
Steps in Advisor Integration API are similar to buttons that apply recommendations in the Plesk interface.
For example, the "Configure the Plesk Firewall" recommendation has the "Activate" step/button that turns on the Plesk Firewall.
* The `applyStep` method is called by Advisor every time a customer clicks the button in the Plesk interface to apply a recommendation.
For more information, see `src/plib/hooks/Advisor.php`.