Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Preference API: Difference between revisions

From MoodleDocs
No edit summary
Line 29: Line 29:
|-
|-
| id
| id
| int(10)
| unsigned int(10)
| auto-incrementing
| auto-incrementing
| The unique ID for this preference.
| The unique ID for this preference.
|-
|-
| userid
| userid
| int(10)
| unsigned int(10)
|
|  
| The user that the preference belongs to
| The user that the preference belongs to
|-
|-
| timecreated
| name
| int(10)
| varchar(255)
|
|
|  
| The name of the preference
|-
|-
| timemodified
| value
| int(10)
| varchar(255)
|
|
|
| The value of the preference
|}
|}



Revision as of 08:01, 12 January 2012

Moodle 2.0


WORK IN PROGRESS: I've currently just created a template, so please ignore this page until this wip notices has been removed. However, you are free to help in the construction of this page by improving it. Please review the tion=history edit history if you would like to contact the user who put up this notice. If this article has not been edited by that user in a while, please remove this template.


Objectives

The goals of Preferences API:

  • example goal


Overview

Preference API provides following functionalities:

  1. example functionality

Preference API database table

Field Type Default Info
id unsigned int(10) auto-incrementing The unique ID for this preference.
userid unsigned int(10) The user that the preference belongs to
name varchar(255) The name of the preference
value varchar(255) The value of the preference

Preference API Usage

Title for the example goes here

Description of the example:

shortexamplecode();

Title for the second example goes here

Description of the example:

shortexamplecode();

Preference API overview

The Preference API has been implemented in lib/moodlelib.php.

examplefunction()

Example function description.

See also