login | register
Sun 21 of Mar, 2010 (13:56 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

Refresh cacheRSS feedPrint

How do I get and set preferences?

by Stephan Borg
Friday 01 of July, 2005
Posted to Developer's FAQ
To get a preference:
$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