37 var $pref_vars = Array();
55 if (empty($pref_file)) $this->pref_file = SQ_DATA_PATH.
'/private/conf/preferences.inc';
56 else $this->pref_file = $pref_file;
58 if (is_file($this->pref_file)) {
59 include $this->pref_file;
61 $pref_type = substr((get_class_lower($this)), 0, -6);
62 if (isset($preferences[$pref_type])) {
63 foreach ($preferences[$pref_type] as $var_name => $var_data) {
64 if (!isset($this->pref_vars[$var_name]))
continue;
65 $this->pref_vars[$var_name][
'default'] = $var_data[
'default'];
66 $this->pref_vars[$var_name][
'protected'] = $var_data[
'protected'];