Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation



integrationblogcta.jpg

StatManager Module Documentation

Allows for modifications to stats programs

The functions within this module may or may not be governed by a feature list. The required feature list may vary from function to function, to review a total list of the available features sets on a cPanel server, please see "Feature Manager" in WHM.

StatManager::doForm

API Version: 1 - Click here for documentation
Syntax: StatManager::doForm( )
Description: Display an HTML table that contains domains associated with the cPanel account and lists stat programs enabled for the account's domains.
Returns:  
 
The output will contain a chunk of HTML that contains the table.

StatManager::updateUserConfig

API Version: 1 - Click here for documentation
Syntax: StatManager::updateUserConfig( )
Description: Enable or disable a stats program for a specific domain.
Form Data:  
  STATSPROGRAM-DOMAIN.COM (string)
  This form-data should be titled with the stats program and domain in all capital letters. That data is then followed by an equals sign (=) and either 'yes' or 'no' (e.g., WEBALIZER-EXAMPLE.COM=yes, ANALOG-EXAMPLE.COM=no, AWSTATS-EXAMPLE.COM=yes).
Returns:  
 
This function does not produce any output.

Topic revision: r2 - 27 Mar 2012 - 19:25:35 - Main.JenniferDoubrava