Developer Center

Supported Functions

The following headers contain the function names within the class.

testConnect

If you use this function, the "Test Connection" button will appear on the add/edit server page, the return value must be of a "boolean" data type.

create

This function starts running if the status of the product/service is activated; if the return value fails it does not activate the status of the product/service. Saves the error message for displaying to the administrator and notifies the administrator.

suspend

This function starts running if the status of the product/service is suspended, if the return value fails, it will not suspend the status of the product/service. Saves the error message for displaying to the administrator and notifies the administrator.

unsuspend

This function will start running if the suspension status of the product/service is removed, if the return value fails, it leaves the status of the product/service suspended. Saves the error message for displaying to the administrator and notifies the administrator.

terminate

This function starts running if the status of the service is canceled or deleted while "Delete from Server" option is enabled on the automation settings page. If the return value fails, it saves the error message for displaying to the administrator and notifies the administrator.

getDisk

It is used to display disk space statistics on the the client area service detail and the administrator service detail pages.

getBandwidth

It is used to display bandwidth statistics on the the client area service detail and the administrator service detail pages.

apply_updowngrade

This function runs when the upgrade request for the service is confirmed, if the return value fails, it saves the error message for displaying to the administrator and notifies the administrator.

change_password

It is used to change the access password of the optional the service. If the return value fails, it saves the error message for displaying to the administrator and notifies the administrator.

clientArea

Prints the value returned from this function in the field in the client area service detail. It comes defined by default, if you disable the function, it will give the output in pages/panel.php file to the client area.

clientArea_buttons

With this function, you can place buttons on the client area output and use a function when you click the button.

clientArea_buttons_output

You can use it to compile and output the array defined in clientArea_buttons function.

adminArea_buttons

With this function, you can place buttons on the client area output and use a function when you click the button.

adminArea_buttons_output

You can use it to compile and output the array defined in adminArea_buttons function.

adminArea_service_fields

With this function, you can insert a new field or a new configuration option in the administrator field output.

save_adminArea_service_fields

Saves extra added fields and configuration options.

listAccounts

With this function, if your API service allows you to get a list of your existing hosting accounts, it will provide import feature.

Parameters Fixed Functions and Return

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top