Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Adds a persistent CustomInventory row to the database that is persistent, meaning that the data will not be flushed out the next time that the CustomInventory package is run.


Info
titlePlease note

Please note, that this is an expensive call, seen from the Frontend/database perspective. Calling this function repeatedly from a package could result in overall slower performance. This function should be used with care. 

Syntax

CMS_AddCustomInventory(category, entry, value, valuetype)

...

If you are inserting a Time (valuetype: "T") it must be set in epoch-time, meaning seconds since January 1. 1970. The scripting library has a function called GetEpochTime, which will convert a date to seconds since from 1-1-1970.

If you want to use 'now' as the value, you can either insert;

...