DESCRIPTION

\s-1OCS\s0 Inventory uses \s-1XML\s0 for the data transmition. The module is the abstraction layer. It's mostly used in the backend module where it called $inventory in general.

new()

The usual constructor.

initialise()

Runs the backend modules to initilise the data.

getContent()

Return the inventory as a \s-1XML\s0 string.

printXML()

Only for debugging purpose. Print the inventory on \s-1STDOUT\s0.

writeXML()

Save the generated inventory as an \s-1XML\s0 file. The 'local' key of the config is used to know where the file as to be saved.

processChecksum()

Compute the <\s-1CHECKSUM/\s0> field. This information is used by the server to know which parts of the \s-1XML\s0 have changed since the last inventory. The is done thank to the last_file file. It has \s-1MD5\s0 prints of the previous inventory.

saveLastState()

At the end of the process \s-1IF\s0 the inventory was saved correctly, the last_state is saved.

addSection()

A generic way to save a section in the inventory. Please avoid this solution.

feedSection()

Add information in inventory.