/functions/file_prefs.php

Description

file_prefs.php

This contains functions for manipulating user preferences in files

Functions
cachePrefValues (line 19)

Check the preferences into the session cache.

void cachePrefValues ( $data_dir,  $username)
  • $data_dir
  • $username
checkForPrefs (line 181)

Check for a preferences file. If one can not be found, create it.

void checkForPrefs ( $data_dir,  $username, [ $filename = ''])
  • $data_dir
  • $username
  • $filename
getPref (line 89)

Return the value for the preference given by $string.

void getPref ( $data_dir,  $username,  $string, [ $default = ''])
  • $data_dir
  • $username
  • $string
  • $default
getSig (line 256)

Get the signature.

void getSig ( $data_dir,  $username,  $number)
  • $data_dir
  • $username
  • $number
removePref (line 146)

Remove a preference for the current user.

void removePref ( $data_dir,  $username,  $string)
  • $data_dir
  • $username
  • $string
savePrefValues (line 114)

Save the preferences for this user.

void savePrefValues ( $data_dir,  $username)
  • $data_dir
  • $username
setPref (line 161)

Set a there preference $string to $value.

void setPref ( $data_dir,  $username,  $string,  $value)
  • $data_dir
  • $username
  • $string
  • $value
setSig (line 227)

Write the User Signature.

void setSig ( $data_dir,  $username,  $number,  $value)
  • $data_dir
  • $username
  • $number
  • $value

Documentation generated on Mon, 13 Jan 2020 04:24:35 +0100 by phpDocumentor 1.4.3