MDL-21249 improved php docs and adding direct access prevention in ddl

This commit is contained in:
Petr Skoda 2010-07-25 12:57:03 +00:00
parent 1a3993c1ec
commit c86f538116
7 changed files with 28 additions and 14 deletions

View file

@ -20,14 +20,16 @@
* Database manager instance is responsible for all database structure
* modifications.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* 2008 Petr Skoda http://skodak.org
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Database manager instance is responsible for all database structure
* modifications. It is using db specific generators to find out

View file

@ -19,13 +19,15 @@
/**
* MSSQL specific SQL code generator.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/ddl/sql_generator.php');
/// This class generate SQL code to be used against MSSQL

View file

@ -19,13 +19,15 @@
/**
* Mysql specific SQL code generator.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/ddl/sql_generator.php');
/// This class generate SQL code to be used against MySQL

View file

@ -19,13 +19,15 @@
/**
* Oracle specific SQL code generator.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/ddl/sql_generator.php');
/// This class generate SQL code to be used against Oracle

View file

@ -19,13 +19,15 @@
/**
* PostgreSQL specific SQL code generator.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/ddl/sql_generator.php');
/// This class generate SQL code to be used against PostgreSQL

View file

@ -23,13 +23,15 @@
* The rest of classes will inherit, by default, the same logic.
* Functions will be overridden as needed to generate correct SQL.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Abstract sql generator class, base for all db specific implementations.
*/

View file

@ -19,12 +19,14 @@
/**
* Experimental SQLite specific SQL code generator.
*
* @package moodlecore
* @subpackage DDL
* @package core
* @subpackage ddl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/ddl/sql_generator.php');
/// This class generate SQL code to be used against SQLite