Lasso Soft Inc. > Home

[ Admin_GetPref ]

Method

[Admin_GetPref] is used to fetch the values of preferences stored internally in Lasso. This tag requires administrator privileges to be run. It requires one parameter which can take two forms. The parameter can be the name of a single preference to be fetched. In this case the value of the preference is returned by the method. Null is returned if the preference is not set. The parameter can be map of preference names and values. Each preference in the map is fetched and the value in the map is set to the new value. If a preference cannot be found then the value in the map is not modified. The modified map is returned as the method value.

  • Syntax
Admin_GetPref('name')

Admin_GetPref(map('name','name'))
Examples
  • Beginner

Retrieve the default session driver

Use the [Admin_GetPref] method.

Code

Admin_GetPref('session_default_driver')

Result

sqlite

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft