seafile_MetaData()
seafile_MetaData() : mixed
seafile_MetaData() : mixed
Define SeaFile product configuration options.
seafile_ConfigOptions() : array<string|int, mixed>
Test connection to a SeaFile server with the given server parameters.
seafile_TestConnection(array<string|int, mixed> $params) : array<string|int, mixed>
Allows an admin user to verify that an API connection can be successfully made with the given configuration parameters for a server.
When defined in a module, a Test Connection button will appear alongside the Server Type dropdown when adding or editing an existing server.
common module parameters
Usage Update
seafile_UsageUpdate(array<string|int, mixed> $params) : mixed
Important: Runs daily per server not per product Run Manually: /admin/reports.php?report=disk_usage_summary&action=updatestats
common module parameters
Client area output logic handling.
seafile_ClientArea(array<string|int, mixed> $params) : array<string|int, mixed>
This function is used to define module specific client area output. It should return an array consisting of a template file and optional additional template variables to make available to that template.
The template file you return can be one of two types:
tabOverviewModuleOutputTemplate - The output of the template provided here will be displayed as part of the default product/service client area product overview page.
tabOverviewReplacementTemplate - Alternatively using this option allows you to entirely take control of the product/service overview page within the client area.
Whichever option you choose, extra template variables are defined in the same way. This demonstrates the use of the full replacement.
Please Note: Using tabOverviewReplacementTemplate means you should display the standard information such as pricing and billing details in your custom template or they will not be visible to the end user.
common module parameters
Change the password for a SeaFile account.
seafile_ChangePassword(array<string|int, mixed> $params) : string
Called when a password change is requested. This can occur either due to a client requesting it via the client area or an admin requesting it from the admin side.
This option is only available to client end users when the product is in an active status.
common module parameters
Set a new quota of a SeaFile account.
seafile_ChangePackage(array<string|int, mixed> $params) : string
Called to apply a quota change of the service. It is called to provision upgrade or downgrade orders, as well as being able to be invoked manually by an admin user.
This same function is called for upgrades and downgrades of both products and configurable options.
common module parameters
Provision a new instance of a SeaFile account.
seafile_CreateAccount(array<string|int, mixed> $params) : string
Attempt to provision a new SeaFile account. This is called any time provisioning is requested inside of WHMCS. Depending upon the configuration, this can be any of:
common module parameters
Set a SeaFile account to status inactive.
seafile_SuspendAccount(array<string|int, mixed> $params) : string
Called when a suspension is requested. This is invoked automatically by WHMCS when a product becomes overdue on payment or can be called manually by admin user.
common module parameters
Set a SeaFile account to status active.
seafile_UnsuspendAccount(array<string|int, mixed> $params) : string
Called when an un-suspension is requested. This is invoked automatically upon payment of an overdue invoice for a product, or can be called manually by admin user.
common module parameters
Removes a SeaFile account.
seafile_TerminateAccount(array<string|int, mixed> $params) : string
Called when a termination is requested. This can be invoked automatically for overdue products if enabled, or requested manually by an admin user.
common module parameters
server side password check
seafileCheckPassword(string $pwd) : string
recheck the client side password check in case that the client side check has been disabled
password