|
Baylys Just practicing to pass the Turing test. |
||||||||||||||||||
|
Cornershop RPChandlersThe Cornershop plugin offers 4 RPC entry points. There are designed with the needs of the shopFitter plugin in mind. The caller must provide the username and password of a Managing Editor to be permitted access to these functions.
Configuration TableTwo scripts provide for getting and setting values of configuration variable.
getConfigurationValues (sitename, username, password)Returns a table of values of the configuration parameters.
setConfigurationValues (sitename, username, password, configTbl)Sets the value of configuration parameters from the table configTbl. You need only insert values you wish to change in the table parameter.
Basket Callback Table.Much of cornershops power comes from its support for callbacks. These 2 entry points allow retrieval of the whole table and to overwrite some or all of the scripts in the callback table for a shop.
getbasketCallbackTable (sitename, username, password)returns a copy of the callback table for the shop used by sitename.
setbasketCallbackTable (sitename, username, password, callbackTbl, flOverWrite=false)Stores table entries (of any kind) from callbackTbl into the shops callback table. If flOverwrite is true, existing entries are overwritten regardless, if false a timestamp comparison is done and an existing entry is only overwritten by a newer version. Care must be taken when updating across different timezones.
Returns number of entries overwritten.
|
|||||||||||||||||