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 * Database manager instance is responsible for all database structure
* modifications. * modifications.
* *
* @package moodlecore * @package core
* @subpackage DDL * @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com * 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* 2008 Petr Skoda http://skodak.org * 2008 Petr Skoda http://skodak.org
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @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 * Database manager instance is responsible for all database structure
* modifications. It is using db specific generators to find out * modifications. It is using db specific generators to find out

View file

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

View file

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

View file

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

View file

@ -19,13 +19,15 @@
/** /**
* PostgreSQL specific SQL code generator. * PostgreSQL specific SQL code generator.
* *
* @package moodlecore * @package core
* @subpackage DDL * @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com * 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @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'); require_once($CFG->libdir.'/ddl/sql_generator.php');
/// This class generate SQL code to be used against PostgreSQL /// 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. * The rest of classes will inherit, by default, the same logic.
* Functions will be overridden as needed to generate correct SQL. * Functions will be overridden as needed to generate correct SQL.
* *
* @package moodlecore * @package core
* @subpackage DDL * @subpackage ddl
* @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com
* 2001-3001 Eloy Lafuente (stronk7) http://contiento.com * 2001-3001 Eloy Lafuente (stronk7) http://contiento.com
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @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. * Abstract sql generator class, base for all db specific implementations.
*/ */

View file

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