From 270f6cf52cbb0226e500f6efe6e3f9ba5285b260 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 30 Nov 2003 08:40:03 +0000 Subject: [PATCH] Style fixes --- lang/en/docs/coding.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lang/en/docs/coding.html b/lang/en/docs/coding.html index dd9df05621..4fe9ce5aea 100755 --- a/lang/en/docs/coding.html +++ b/lang/en/docs/coding.html @@ -161,15 +161,16 @@ GOOD: $assignments (for an array of objects)
}

+

 

Database structures

  1. Every table must have an auto-incrementing id field (INT(10)) as primary index.
  2. -
  3. The main table containing instances of each module must have the same name as the module (eg widget)
  4. -
  5. Other tables associated with a module that contain information about 'things' should be named widget_things (note the plural)
  6. -
  7. Column names should be simple and short, following the same rules as for variable names.
  8. -
  9. Columns that contain a reference to the id field of another table (eg widget) should be called widgetid.
  10. -
  11. Boolean fields should be implemented as small integer fields (eg INT(4)) containing 0 or 1, to allow for later expansion of values if necessary.
  12. -
  13. Most tables should have a timemodified field (INT(10) which is updated with a current timestamp obtained with the PHP time() function.
  14. +
  15. The main table containing instances of each module must have the same name as the module (eg widget)
  16. +
  17. Other tables associated with a module that contain information about 'things' should be named widget_things (note the plural)
  18. +
  19. Column names should be simple and short, following the same rules as for variable names.
  20. +
  21. Columns that contain a reference to the id field of another table (eg widget) should be called widgetid.
  22. +
  23. Boolean fields should be implemented as small integer fields (eg INT(4)) containing 0 or 1, to allow for later expansion of values if necessary.
  24. +
  25. Most tables should have a timemodified field (INT(10) which is updated with a current timestamp obtained with the PHP time() function.

Moodle Documentation

-- 2.39.5