Note:

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

DB layer 2.0: Difference between revisions

From MoodleDocs
(added basic info about objectives)
m (Development:Datalib 2.0 moved to Development:dmllib 2.0)
(No difference)

Revision as of 06:41, 2 May 2008

Objectives

  • Switch to prepared statements - using placeholders and preparing statements protects against sql injection
  • Remove the need for data to be add/strip slashed all over the place in the code.
  • Make it so that the database object can be subclassed - this means for unit tests that want to test database access, the test framework can override necessary methods


Ideas