[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.prefs.php (summary)

(no description)

File Size: 158 lines (7 kb)
Included or required: 10 times
Referenced: 0 times
Includes or requires: 3 files
 include/class.date.php
 include/class.user.php
 include/class.error_handler.php

Defines 1 class

Prefs:: (3 methods):
  getDefaults()
  get()
  set()


Class: Prefs  - X-Ref

Class to handle the business logic related to the user preferences
available in the application.

getDefaults($projects)   X-Ref
Method used to get the system-wide default preferences.

param: array $projects An array of projects this user will have access too.
return: string The serialized array of the default preferences

get($usr_id)   X-Ref
Method used to get the preferences set by a specific user.

param: integer $usr_id The user ID
return: array The preferences

set($usr_id)   X-Ref
Method used to set the preferences for a specific user.

param: integer $usr_id The user ID
return: integer 1 if the update worked, -1 otherwise



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7