HK Components

================================================================================

HK_preferences

PREF_set_user

This method is used to tell HK_preferences how to identify the current user.
you can either pass a string that identifies the user, in this case you will need to remember to change it every time you switch users, or you can pass a method or variable name that returns the user identification. In the later case you must also pass the information if the method result o variable is of text or numeric type.

Call

PREF_set_user(linktype;linkcontent{;resulttype})

Parameters

$1 -> text what type of link do you pass? the choices are:
"fixed" or "formula"
later is also used for passing variables
$2 -> text in case of linktype fixed, pass a string representing the users identification
in case of linktype formula, pass either the name of a variable that contains the user id, or a method call (with parameters if needed) that will generate the user id
$3 -> text what type s the result of the formula, choices are:
"text" or "int"

Example

PREF_set_user("fixed";string(current user))
PREF_set_user("formula";"<>t_user_id";"text")
PREF_set_user("formula";"USER_get_current_id";"int")
--------------------------------------------------------------------------------

Pricing

All current components are donationware in their compiled form, please use the donate button below to give what you think it's worth via paypal.

You can buy the sourcecode to the components. AC_Basics is free, but the source for all other components is 100 U$/€ via PayPal. You will receive the password to the archive contained in the component as soon as I receive the email from paypal confirming payment. Please make sure to call the payment button from the webpage of the desired component, so I know what you want to pay for. I can send an invoice by mail if you so require, EU corporate entities may provide a VAT ID in the message of their PayPal payments so I can deduct the VAT.

Thanks a lot

========================

Current version

0.8 - 2009.02.27
========================