MDL-82183 core: Update namespace of moved output classes

This commit is contained in:
Andrew Nicols
2024-06-26 23:00:33 +08:00
parent 6c61700d0e
commit ff0fd2764a
95 changed files with 824 additions and 415 deletions
+12 -2
View File
@@ -14,6 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace core_table;
use flexible_table;
use moodle_recordset;
use stdClass;
defined('MOODLE_INTERNAL') || die();
global $CFG;
@@ -27,8 +33,7 @@ require_once("{$CFG->libdir}/tablelib.php");
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class table_sql extends flexible_table {
class sql_table extends flexible_table {
public $countsql = NULL;
public $countparams = NULL;
/**
@@ -203,3 +208,8 @@ class table_sql extends flexible_table {
$this->finish_output();
}
}
// Alias this class to the old name.
// This file will be autoloaded by the legacyclasses autoload system.
// In future all uses of this class will be corrected and the legacy references will be removed.
class_alias(sql_table::class, \table_sql::class);