mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-29515 drop 1.9 xmldb classes and methods (deprecated since 2.0)
This commit is contained in:
parent
de640a2d3f
commit
e763c273eb
@ -60,17 +60,6 @@ class xmldb_field extends xmldb_object {
|
||||
$this->set_attributes($type, $precision, $unsigned, $notnull, $sequence, $default, $previous);
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
|
||||
function setAttributes($type, $precision=null, $unsigned=null, $notnull=null, $sequence=null, $enum=null, $enumvalues=null, $default=null, $previous=null) {
|
||||
|
||||
debugging('XMLDBField->setAttributes() has been deprecated in Moodle 2.0. Will be out in Moodle 2.1. Please use xmldb_field->set_attributes() instead.', DEBUG_DEVELOPER);
|
||||
|
||||
return $this->set_attributes($type, $precision, $unsigned, $notnull, $sequence, $default, $previous);
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
||||
/**
|
||||
* Set all the attributes of one xmldb_field
|
||||
*
|
||||
@ -748,14 +737,3 @@ class xmldb_field extends xmldb_object {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
class XMLDBField extends xmldb_field {
|
||||
|
||||
function __construct($name) {
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
@ -57,16 +57,6 @@ class xmldb_index extends xmldb_object {
|
||||
return $this->set_attributes($type, $fields);
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
function setAttributes($type, $fields) {
|
||||
|
||||
debugging('XMLDBIndex->setAttributes() has been deprecated in Moodle 2.0. Will be out in Moodle 2.1. Please use xmldb_index->set_attributes() instead.', DEBUG_DEVELOPER);
|
||||
|
||||
return $this->set_attributes($type, $fields);
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
||||
/**
|
||||
* Set all the attributes of one xmldb_index
|
||||
*
|
||||
@ -356,14 +346,3 @@ class xmldb_index extends xmldb_object {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
class XMLDBIndex extends xmldb_index {
|
||||
|
||||
function __construct($name) {
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
@ -45,17 +45,6 @@ class xmldb_key extends xmldb_object {
|
||||
$this->set_attributes($type, $fields, $reftable, $reffields);
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
|
||||
function setAttributes($type, $fields, $reftable=null, $reffields=null) {
|
||||
|
||||
debugging('XMLDBKey->setAttributes() has been deprecated in Moodle 2.0. Will be out in Moodle 2.1. Please use xmldb_key->set_attributes() instead.', DEBUG_DEVELOPER);
|
||||
|
||||
return $this->set_attributes($type, $fields, $reftable, $reffields);
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
||||
/**
|
||||
* Set all the attributes of one xmldb_key
|
||||
*
|
||||
@ -469,14 +458,3 @@ class xmldb_key extends xmldb_object {
|
||||
return $o;
|
||||
}
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
class XMLDBKey extends xmldb_key {
|
||||
|
||||
function __construct($name) {
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
@ -704,17 +704,6 @@ class xmldb_table extends xmldb_object {
|
||||
return $o;
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
function addFieldInfo($name, $type, $precision=null, $unsigned=null, $notnull=null, $sequence=null, $enum=null, $enumvalues=null, $default=null, $previous=null) {
|
||||
|
||||
debugging('XMLDBTable->addFieldInfo() has been deprecated in Moodle 2.0. Will be out in Moodle 2.1. Please use xmldb_table->add_field() instead', DEBUG_DEVELOPER);
|
||||
|
||||
return $this->add_field($name, $type, $precision, $unsigned, $notnull, $sequence, $default, $previous);
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
||||
/**
|
||||
* This function will add one new field to the table with all
|
||||
* its attributes defined
|
||||
@ -735,18 +724,6 @@ class xmldb_table extends xmldb_object {
|
||||
return $field;
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
|
||||
function addKeyInfo($name, $type, $fields, $reftable=null, $reffields=null) {
|
||||
|
||||
debugging('XMLDBTable->addKeyInfo() has been deprecated in Moodle 2.0. Will be out in Moodle 2.1. Please use xmldb_table->add_key() instead', DEBUG_DEVELOPER);
|
||||
|
||||
return $this->add_key($name, $type, $fields, $reftable, $reffields);
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
||||
/**
|
||||
* This function will add one new key to the table with all
|
||||
* its attributes defined
|
||||
@ -762,17 +739,6 @@ class xmldb_table extends xmldb_object {
|
||||
$this->addKey($key);
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
function addIndexInfo($name, $type, $fields) {
|
||||
|
||||
debugging('XMLDBTable->addIndexInfo() has been deprecated in Moodle 2.0. Will be out in Moodle 2.1. Please use xmldb_table->add_index() instead', DEBUG_DEVELOPER);
|
||||
|
||||
return $this->add_index($name, $type, $fields);
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
||||
/**
|
||||
* This function will add one new index to the table with all
|
||||
* its attributes defined
|
||||
@ -830,14 +796,3 @@ class xmldb_table extends xmldb_object {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// TODO: Delete for 2.1 (deeprecated in 2.0).
|
||||
/// Deprecated API starts here
|
||||
class XMLDBTable extends xmldb_table {
|
||||
|
||||
function __construct($name) {
|
||||
parent::__construct($name);
|
||||
}
|
||||
|
||||
}
|
||||
/// Deprecated API ends here
|
||||
|
Loading…
x
Reference in New Issue
Block a user