Changes between Version 1 and Version 2 of ProjectSpecificPrefs
- Timestamp:
- Jul 20, 2007, 7:01:42 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProjectSpecificPrefs
v1 v2 1 1 = Project-specific preferences = 2 2 3 You can provide users with a set of project-specific preferences, 4 controlled via a web interface. 5 These preferences are stored in XML, in a field of the user table. 6 You determine the structure of this XML, and what it's used for. 7 On the client, the XML is passed to your application in 8 the [BasicApi#Communicatingwiththecoreclient APP_INIT_DATA structure]. 3 You can provide users with a set of project-specific preferences, controlled via a web interface. These preferences are stored in XML, in a field of the user table. You determine the structure of this XML, and what it's used for. On the client, the XML is passed to your application in the [BasicApi#Communicatingwiththecoreclient APP_INIT_DATA structure]. 9 4 10 5 Examples of project-specific preferences include: 11 6 12 7 * Graphics preferences: e.g., color scheme. 13 * Application selection: you can allow users to select 14 which of your applications they will be sent work for. 15 This is described [AppFiltering here]. 8 * Application selection: you can allow users to select which of your applications they will be sent work for. This is described [AppFiltering here]. 16 9 17 The PHP code that allows users to edit their project-specific preferences 18 is in html/project/project_specific_prefs.inc. 19 When you create your project, this is initialized to sample code. 20 To create your own project-specific preferences, edit this file 10 The PHP code that allows users to edit their project-specific preferences is in `html/project/project_specific_prefs.inc`. When you create your project, this is initialized to sample code. To create your own project-specific preferences, edit this file 21 11 (and keep it under SVN or CVS somewhere). 22 12 The functions you must supply are: 23 13 24 * project_specific_prefs_edit()25 * project_specific_prefs_parse_form()26 * project_specific_prefs_show()27 * project_specific_prefs_parse()14 * `project_specific_prefs_edit()` 15 * `project_specific_prefs_parse_form()` 16 * `project_specific_prefs_show()` 17 * `project_specific_prefs_parse()` 28 18 29 19 The sample code provides a working example.