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

NVData Module Documentation

The NVData module provides access to cPanel's non-volatile datastore. This datastore is used for saving data between sessions.

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.

NVData::set

API Version: 1 - Click here for documentation
Syntax: NVData::set( name, value, nocache )
Description: Set an NVData variable. This function saves a file in /home/$user/.cpanel/nvdata with the contents of $value. This variable can be retrieved using other NVData functions.
Parameters:  
  name (string)
  The variable name to save.
  value (string)
  The value to save in $name.
  nocache (boolean)
  Passing 1 to this parameter causes the function not to save the value in NVData's cache.
Returns:  
 
This function does not produce any output if it is successful.

Topic revision: r2 - 27 Mar 2012 - 19:06:30 - Main.JenniferDoubrava