Skip to content

Commit

Permalink
MDL-21249 improved php docs and adding direct access prevention in dtl
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 25, 2010
1 parent f2ed3f0 commit 2ac619c
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 19 deletions.
6 changes: 4 additions & 2 deletions lib/dtl/database_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* General database export class
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* Base class for database export operations. This class defines basic callbacks
* for export operations and implements the @see export_database and
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/database_importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* General database importer class
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* Base class for database import operations. This class implements
* basic callbacks for import operations and defines the @see import_database
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/database_mover.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* General database mover class
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

class database_mover extends database_exporter {
/** Importer object used to transfer data. */
protected $importer;
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/file_xml_database_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* XML format exporter class to file storage
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* XML format exporter class to file storage.
*/
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/file_xml_database_importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* XML format importer class from file storage
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* XML format importer class from file storage.
*/
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/string_xml_database_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* XML format exporter class to memory storage
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* XML format exporter class to memory storage (i.e. a string).
*/
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/string_xml_database_importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* XML format importer class from memory storage
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* XML format importer class from memory storage (i.e. string).
*/
Expand Down
6 changes: 4 additions & 2 deletions lib/dtl/xml_database_exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
/**
* XML format exporter class
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* XML format exporter class.
* Provides logic for writing XML tags and data inside appropiate callbacks.
Expand Down
8 changes: 5 additions & 3 deletions lib/dtl/xml_database_importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@
/**
* XML format importer class
*
* @package moodlecore
* @subpackage DTL
* @package core
* @subpackage dtl
* @copyright 2008 Andrei Bautu
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* XML format importer class (uses SAX for speed and low memory footprint).
* Provides logic for parsing XML data and calling appropiate callbacks.
* Provides logic for parsing XML data and calling appropriate callbacks.
* Subclasses should define XML data sources.
*/
abstract class xml_database_importer extends database_importer {
Expand Down

0 comments on commit 2ac619c

Please sign in to comment.