Documentation

Documentation

Table of Contents

zimbraSingleGetAccess()  : array<string|int, mixed>
Helper function to get the zimbra server access data from whmcs database
zimbraSingleCreateCustomFields()  : bool
Helper function creates all necessary custom fields depending on selected configuration options
recursiveFindAll()  : array<string|int, mixed>
Helper function to find values of a named key in a multidimensional array or object
zimbraSingleCheckPassword()  : string
Helper function to check a password strength
bytesToHuman()  : string
Convert raw byte value to human readable
zimbraSingle_MetaData()  : array<string|int, mixed>
Define module related meta data.
zimbraSingle_TestConnection()  : array<string|int, mixed>
Test connection to a Zimbra server with the given server parameters.
zimbraSingle_ClientArea()  : array<string|int, mixed>
Client area output logic handling.
zimbraSingle_ChangePassword()  : string
Change the password for a Zimbra account.
zimbraSingle_CreateAccount()  : string
Provision a new instance of a Zimbra account.
zimbraSingle_SuspendAccount()  : string
Set a Zimbra account to status locked.
zimbraSingle_UnsuspendAccount()  : string
Set a Zimbra account to status active.
zimbraSingle_TerminateAccount()  : string
Removes a Zimbra account.
zimbraSingle_ChangePackage()  : string
Set a new class of service for a Zimbra account.
zimbraSingle_ConfigOptions()  : array<string|int, mixed>
Define Zimbra product configuration options.

Functions

zimbraSingleGetAccess()

Helper function to get the zimbra server access data from whmcs database

zimbraSingleGetAccess() : array<string|int, mixed>

zimbraSingleCreateCustomFields()

Helper function creates all necessary custom fields depending on selected configuration options

zimbraSingleCreateCustomFields(array<string|int, mixed> $packageconfigoption) : bool
Parameters
$packageconfigoption : array<string|int, mixed>

{ @type string 1 class of service @type string 2 comma seperated list of maildomains }

recursiveFindAll()

Helper function to find values of a named key in a multidimensional array or object

recursiveFindAll(array<string|int, mixed> $haystack, string $needle) : array<string|int, mixed>
Parameters
$haystack : array<string|int, mixed>

mixed data

$needle : string

key to search for values

zimbraSingleCheckPassword()

Helper function to check a password strength

zimbraSingleCheckPassword(string $pwd) : string
Parameters
$pwd : string

password to check

bytesToHuman()

Convert raw byte value to human readable

bytesToHuman(int $bytes) : string

Helper function to convert byte in huam readable format

Parameters
$bytes : int

value in bytes

zimbraSingle_TestConnection()

Test connection to a Zimbra server with the given server parameters.

zimbraSingle_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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_ClientArea()

Client area output logic handling.

zimbraSingle_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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_ChangePassword()

Change the password for a Zimbra account.

zimbraSingle_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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_CreateAccount()

Provision a new instance of a Zimbra account.

zimbraSingle_CreateAccount(array<string|int, mixed> $params) : string

Attempt to provision a new Zimbra mail account. This is called any time provisioning is requested inside of WHMCS. Depending upon the configuration, this can be any of:

  • When a new order is placed
  • When an invoice for a new order is paid
  • Upon manual request by an admin user
Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_SuspendAccount()

Set a Zimbra account to status locked.

zimbraSingle_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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_UnsuspendAccount()

Set a Zimbra account to status active.

zimbraSingle_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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_TerminateAccount()

Removes a Zimbra account.

zimbraSingle_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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_ChangePackage()

Set a new class of service for a Zimbra account.

zimbraSingle_ChangePackage(array<string|int, mixed> $params) : string

Called to apply a change of the class of 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.

Parameters
$params : array<string|int, mixed>

common module parameters

Tags
see
https://developers.whmcs.com/provisioning-modules/module-parameters/

zimbraSingle_ConfigOptions()

Define Zimbra product configuration options.

zimbraSingle_ConfigOptions(mixed $params) : array<string|int, mixed>

Gather classes of service and available mail domains from the Zinbra server. Calls a function to create all necessary customfields for the order form using the selected values.

Parameters
$params : mixed
Tags
see
https://developers.whmcs.com/provisioning-modules/config-options/

Search results