How do I get and set preferences?
To get a preference:
Where, "maxArticles" is your preference name, which 10 is your default setting, should it not be set.
To set a preference:
Where, "maxArticles" is your preference name, which 10 is your setting you wish to store.
$gBitSystem->getPreference("maxArticles", 10);
Where, "maxArticles" is your preference name, which 10 is your default setting, should it not be set.
To set a preference:
$gBitSystem->storePreference("maxArticles", 10);
Where, "maxArticles" is your preference name, which 10 is your setting you wish to store.
Comments