mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-21249 improved php docs and adding direct access prevention in ddl
This commit is contained in:
parent
1a3993c1ec
commit
c86f538116
7 changed files with 28 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue